Class: LolSoap::Client
- Inherits:
-
Object
- Object
- LolSoap::Client
- Defined in:
- lib/lolsoap/client.rb
Instance Attribute Summary collapse
-
#wsdl ⇒ Object
readonly
Returns the value of attribute wsdl.
Instance Method Summary collapse
-
#initialize(wsdl) ⇒ Client
constructor
A new instance of Client.
-
#request(name) ⇒ LolSoap::Request
A request for the API action you want to perform.
-
#response(request, raw) ⇒ LolSoap::Response
A response object for an API action that has been performed.
Constructor Details
Instance Attribute Details
#wsdl ⇒ Object (readonly)
Returns the value of attribute wsdl.
8 9 10 |
# File 'lib/lolsoap/client.rb', line 8 def wsdl @wsdl end |
Instance Method Details
#request(name) ⇒ LolSoap::Request
Returns A request for the API action you want to perform.
16 17 18 |
# File 'lib/lolsoap/client.rb', line 16 def request(name) Request.new(Envelope.new(wsdl, wsdl.operation(name))) end |
#response(request, raw) ⇒ LolSoap::Response
Returns A response object for an API action that has been performed.
21 22 23 |
# File 'lib/lolsoap/client.rb', line 21 def response(request, raw) Response.parse(request, raw) end |