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 @error_message 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
9 10 11 |
# File 'lib/go_transit/resources/metadata.rb', line 9 def code error_code.to_i end |
#time_stamp_utc ⇒ Object
13 14 15 |
# File 'lib/go_transit/resources/metadata.rb', line 13 def time_stamp_utc to_utc(time_stamp) end |
#to_s ⇒ Object
5 6 7 |
# File 'lib/go_transit/resources/metadata.rb', line 5 def to_s "#{error_code} - #{}" end |