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.
180 181 182 183 184 185 |
# File 'lib/soap/netHttpClient.rb', line 180 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
175 176 177 |
# File 'lib/soap/netHttpClient.rb', line 175 def content @content end |
#contenttype ⇒ Object (readonly)
Returns the value of attribute contenttype
178 179 180 |
# File 'lib/soap/netHttpClient.rb', line 178 def contenttype @contenttype end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
177 178 179 |
# File 'lib/soap/netHttpClient.rb', line 177 def reason @reason end |
#status ⇒ Object (readonly)
Returns the value of attribute status
176 177 178 |
# File 'lib/soap/netHttpClient.rb', line 176 def status @status end |