Class: ActionWebService::Client::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/action_web_service/client/base.rb

Overview

:nodoc:

Direct Known Subclasses

Soap, XmlRpc

Instance Method Summary collapse

Constructor Details

#initialize(api, endpoint_uri) ⇒ Base

Returns a new instance of Base.



7
8
9
10
# File 'lib/action_web_service/client/base.rb', line 7

def initialize(api, endpoint_uri)
  @api = api
  @endpoint_uri = endpoint_uri
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object

:nodoc:



12
13
14
15
16
# File 'lib/action_web_service/client/base.rb', line 12

def method_missing(name, *args) # :nodoc:
  call_name = method_name(name)
  return super(name, *args) if call_name.nil?
  self.perform_invocation(call_name, args)
end