# File lib/flickr/reflection.rb, line 31
        def getMethodInfo(method_name)
                res = @flickr.call_method('flickr.reflection.getMethodInfo',
                        'method_name' => method_name)
                els = res.elements
                att = res.root.attributes
                desc = els['/method/description'] ?
                        els['/method/description'].text : nil
                resp = els['/method/response'] ?
                        els['/method/response'].text : nil
                expl = els['/method/explanation'] ?
                        els['/method/explanation'].text : nil
                meth = Flickr::Method.new(att['name'],att['needslogin'].to_i==1,
                        desc,resp,expl)
                els['/method/arguments'].each_element do |el|
                        att = el.attributes
                        arg = Flickr::MethodArgument.new(att['name'],
                                att['optional'].to_i == 1,el.text)
                        meth.arguments << arg
                end
                els['/method/errors'].each_element do |el|
                        att = el.attributes
                        err = XMLRPC::FaultException.new(att['code'].to_i,
                                el.text)
                        meth.errors << err
                end           
                return meth
        end