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.



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

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:



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

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