Class: Fugle::Information Private
- Inherits:
-
Object
- Object
- Fugle::Information
- Defined in:
- lib/fugle/information.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The Information
Instance Attribute Summary collapse
- #country_code ⇒ Object readonly private
- #mode ⇒ Object readonly private
- #symbol ⇒ Object readonly private
- #timezone ⇒ Object readonly private
- #update_at ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Information
constructor
private
A new instance of Information.
Constructor Details
#initialize(attributes = {}) ⇒ Information
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Information.
17 18 19 20 21 22 23 24 |
# File 'lib/fugle/information.rb', line 17 def initialize(attributes = {}) @symbol = attributes['symbolId'] @mode = attributes['mode'] @timezone = attributes['timeZone'] @country_code = attributes['countryCode'] @update_at = DateTime.parse(attributes['lastUpdatedAt']) @date = Date.parse(attributes['date']) end |
Instance Attribute Details
#country_code ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/fugle/information.rb', line 13 def country_code @country_code end |
#mode ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/fugle/information.rb', line 13 def mode @mode end |
#symbol ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/fugle/information.rb', line 13 def symbol @symbol end |
#timezone ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/fugle/information.rb', line 13 def timezone @timezone end |
#update_at ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/fugle/information.rb', line 13 def update_at @update_at end |