Class: SOAP::NetHttpClient::Response
- Defined in:
- lib/soap/netHttpClient.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#contenttype ⇒ Object
readonly
Returns the value of attribute contenttype.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(res) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(res) ⇒ Response
Returns a new instance of Response.
194 195 196 197 198 199 |
# File 'lib/soap/netHttpClient.rb', line 194 def initialize(res) @status = res.code.to_i @reason = res. @contenttype = res['content-type'] @content = res.body end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
189 190 191 |
# File 'lib/soap/netHttpClient.rb', line 189 def content @content end |
#contenttype ⇒ Object (readonly)
Returns the value of attribute contenttype.
192 193 194 |
# File 'lib/soap/netHttpClient.rb', line 192 def contenttype @contenttype end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
191 192 193 |
# File 'lib/soap/netHttpClient.rb', line 191 def reason @reason end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
190 191 192 |
# File 'lib/soap/netHttpClient.rb', line 190 def status @status end |