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.
Instance Method Summary collapse
-
#initialize(document, http_response) ⇒ SoapResponse
constructor
A new instance of SoapResponse.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(document, http_response) ⇒ SoapResponse
Returns a new instance of SoapResponse.
122 123 124 125 |
# File 'lib/handsoap/service.rb', line 122 def initialize(document, http_response) @document = document @http_response = http_response end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
126 127 128 129 130 131 132 |
# File 'lib/handsoap/service.rb', line 126 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.
121 122 123 |
# File 'lib/handsoap/service.rb', line 121 def document @document end |
#http_response ⇒ Object (readonly)
Returns the value of attribute http_response.
121 122 123 |
# File 'lib/handsoap/service.rb', line 121 def http_response @http_response end |