Class: AxiomusApi::StatusResponse::Pack
- Inherits:
-
Object
- Object
- AxiomusApi::StatusResponse::Pack
- Defined in:
- lib/axiomus_api/response/status_response.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#places ⇒ Object
Returns the value of attribute places.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(node) ⇒ Pack
constructor
A new instance of Pack.
Constructor Details
#initialize(node) ⇒ Pack
Returns a new instance of Pack.
41 42 43 44 45 |
# File 'lib/axiomus_api/response/status_response.rb', line 41 def initialize(node) @number = node.xpath('@number').text @places = node.xpath('@places').text.to_i @status = node.xpath('@status').text.to_i end |
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
37 38 39 |
# File 'lib/axiomus_api/response/status_response.rb', line 37 def number @number end |
#places ⇒ Object
Returns the value of attribute places.
38 39 40 |
# File 'lib/axiomus_api/response/status_response.rb', line 38 def places @places end |
#status ⇒ Object
Returns the value of attribute status.
39 40 41 |
# File 'lib/axiomus_api/response/status_response.rb', line 39 def status @status end |