Class: AxiomusApi::StatusResponse::Order
- Inherits:
-
Object
- Object
- AxiomusApi::StatusResponse::Order
- Defined in:
- lib/axiomus_api/response/status_response.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#inner_id ⇒ Object
Returns the value of attribute inner_id.
-
#price ⇒ Object
Returns the value of attribute price.
Instance Method Summary collapse
-
#initialize(node) ⇒ Order
constructor
A new instance of Order.
Constructor Details
#initialize(node) ⇒ Order
Returns a new instance of Order.
9 10 11 12 13 |
# File 'lib/axiomus_api/response/status_response.rb', line 9 def initialize(node) @id = node.xpath('@id').text @inner_id = node.xpath('@inner_id').text @price = node.xpath('@price').text.to_f end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/axiomus_api/response/status_response.rb', line 5 def id @id end |
#inner_id ⇒ Object
Returns the value of attribute inner_id.
6 7 8 |
# File 'lib/axiomus_api/response/status_response.rb', line 6 def inner_id @inner_id end |
#price ⇒ Object
Returns the value of attribute price.
7 8 9 |
# File 'lib/axiomus_api/response/status_response.rb', line 7 def price @price end |