Class: OpenMarket::StatusResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/open_market/response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#code, #description

Instance Method Summary collapse

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_codeObject (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_descriptionObject (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