Class: AxiomusApi::StatusListResponse::Okey
- Inherits:
-
Object
- Object
- AxiomusApi::StatusListResponse::Okey
- Defined in:
- lib/axiomus_api/response/status_list_response.rb
Instance Attribute Summary collapse
-
#customer_price ⇒ Object
Returns the value of attribute customer_price.
-
#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.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
-
#status_name ⇒ Object
Returns the value of attribute status_name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(xml_node) ⇒ Okey
constructor
A new instance of Okey.
Constructor Details
#initialize(xml_node) ⇒ Okey
Returns a new instance of Okey.
13 14 15 16 17 18 19 20 21 |
# File 'lib/axiomus_api/response/status_list_response.rb', line 13 def initialize(xml_node) @id = xml_node.xpath('@id').text @status_code = xml_node.xpath('@status_code').text @status_name = xml_node.xpath('@status_name').text @inner_id = xml_node.xpath('@inner_id').text @price = xml_node.xpath('@price').text.to_f @customer_price = xml_node.xpath('@customer_price').text.to_f @value = xml_node.text end |
Instance Attribute Details
#customer_price ⇒ Object
Returns the value of attribute customer_price.
10 11 12 |
# File 'lib/axiomus_api/response/status_list_response.rb', line 10 def customer_price @customer_price end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/axiomus_api/response/status_list_response.rb', line 5 def id @id end |
#inner_id ⇒ Object
Returns the value of attribute inner_id.
8 9 10 |
# File 'lib/axiomus_api/response/status_list_response.rb', line 8 def inner_id @inner_id end |
#price ⇒ Object
Returns the value of attribute price.
9 10 11 |
# File 'lib/axiomus_api/response/status_list_response.rb', line 9 def price @price end |
#status_code ⇒ Object
Returns the value of attribute status_code.
6 7 8 |
# File 'lib/axiomus_api/response/status_list_response.rb', line 6 def status_code @status_code end |
#status_name ⇒ Object
Returns the value of attribute status_name.
7 8 9 |
# File 'lib/axiomus_api/response/status_list_response.rb', line 7 def status_name @status_name end |
#value ⇒ Object
Returns the value of attribute value.
11 12 13 |
# File 'lib/axiomus_api/response/status_list_response.rb', line 11 def value @value end |