Class: GoTransit::Metadata
- Inherits:
-
ApiResource
- Object
- ApiResource
- GoTransit::Metadata
- Defined in:
- lib/go_transit/resources/metadata.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#time_stamp ⇒ Object
Returns the value of attribute time_stamp.
Instance Method Summary collapse
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from GoTransit::ApiResource
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
3 4 5 |
# File 'lib/go_transit/resources/metadata.rb', line 3 def error_code @error_code end |
#error_message ⇒ Object
Returns the value of attribute error_message.
3 4 5 |
# File 'lib/go_transit/resources/metadata.rb', line 3 def end |
#time_stamp ⇒ Object
Returns the value of attribute time_stamp.
3 4 5 |
# File 'lib/go_transit/resources/metadata.rb', line 3 def time_stamp @time_stamp end |
Instance Method Details
#code ⇒ Object
5 6 7 |
# File 'lib/go_transit/resources/metadata.rb', line 5 def code error_code.to_i end |