Class: Metaforce::AbstractClient
- Inherits:
-
Object
- Object
- Metaforce::AbstractClient
- Defined in:
- lib/metaforce/abstract_client.rb
Direct Known Subclasses
Class Method Summary collapse
-
.endpoint(key) ⇒ Object
Internal.
-
.wsdl(wsdl) ⇒ Object
Internal.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AbstractClient
constructor
Public: Initialize a new client.
Constructor Details
permalink #initialize(options = {}) ⇒ AbstractClient
Public: Initialize a new client.
options - A hash of options, which should have a :session_id key
18 19 20 21 |
# File 'lib/metaforce/abstract_client.rb', line 18 def initialize(={}) raise 'Please specify a hash of options' unless .is_a?(Hash) = end |
Class Method Details
permalink .endpoint(key) ⇒ Object
Internal
5 6 7 |
# File 'lib/metaforce/abstract_client.rb', line 5 def endpoint(key) define_method :endpoint do; [key] end end |
permalink .wsdl(wsdl) ⇒ Object
Internal
10 11 12 |
# File 'lib/metaforce/abstract_client.rb', line 10 def wsdl(wsdl) define_method :wsdl do; wsdl end end |