Method: ActionWebService::API::Base.public_api_method_instance

Defined in:
lib/action_web_service/api.rb

.public_api_method_instance(public_method_name) ⇒ Object

The Method instance for the given public API method name, if any

class ProjectsApi < ActionWebService::API::Base
api_method :getCount,          :returns => [:int]
api_method :getCompletedCount, :returns => [:int]
end

ProjectsApi.public_api_method_instance('GetCount')  #=> <#<ActionWebService::API::Method:0x24379d8 ...>
ProjectsApi.public_api_method_instance(:getCount)   #=> nil


169
170
171
# File 'lib/action_web_service/api.rb', line 169

def public_api_method_instance(public_method_name)
  api_method_instance(api_method_name(public_method_name))
end