Class: OpenMarket::StatusResponse
- Defined in:
- lib/open_market/response.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
-
#status_description ⇒ Object
readonly
Returns the value of attribute status_description.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(http_response) ⇒ StatusResponse
constructor
A new instance of StatusResponse.
Constructor Details
#initialize(http_response) ⇒ StatusResponse
Returns a new instance of StatusResponse.
90 91 92 93 94 95 96 |
# File 'lib/open_market/response.rb', line 90 def initialize(http_response) super if status = xml.elements["status"] @status_code = status.attributes["code"].to_i @status_description = status.attributes["description"] end end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
89 90 91 |
# File 'lib/open_market/response.rb', line 89 def status_code @status_code end |
#status_description ⇒ Object (readonly)
Returns the value of attribute status_description.
89 90 91 |
# File 'lib/open_market/response.rb', line 89 def status_description @status_description end |