Class: Handsoap::SoapResponse
- Inherits:
-
Object
- Object
- Handsoap::SoapResponse
- Defined in:
- lib/handsoap/service.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#http_response ⇒ Object
readonly
Returns the value of attribute http_response.
-
#raw_xml ⇒ Object
readonly
Returns the value of attribute raw_xml.
Instance Method Summary collapse
-
#initialize(document, http_response, raw_xml = nil) ⇒ SoapResponse
constructor
A new instance of SoapResponse.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(document, http_response, raw_xml = nil) ⇒ SoapResponse
Returns a new instance of SoapResponse.
132 133 134 135 136 |
# File 'lib/handsoap/service.rb', line 132 def initialize(document, http_response, raw_xml=nil) @document = document @http_response = http_response @raw_xml = raw_xml end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
138 139 140 141 142 143 144 |
# File 'lib/handsoap/service.rb', line 138 def method_missing(method, *args, &block) if @document.respond_to?(method) @document.__send__ method, *args, &block else super end end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
130 131 132 |
# File 'lib/handsoap/service.rb', line 130 def document @document end |
#http_response ⇒ Object (readonly)
Returns the value of attribute http_response.
130 131 132 |
# File 'lib/handsoap/service.rb', line 130 def http_response @http_response end |
#raw_xml ⇒ Object (readonly)
Returns the value of attribute raw_xml.
130 131 132 |
# File 'lib/handsoap/service.rb', line 130 def raw_xml @raw_xml end |