Class: OandaAPI::Resource::Labs::CalendarEvent
- Inherits:
-
OandaAPI::ResourceBase
- Object
- OandaAPI::ResourceBase
- OandaAPI::Resource::Labs::CalendarEvent
- Defined in:
- lib/oanda_api/resource/labs/calendar_event.rb
Overview
Calendar value object. See the Oanda Developer Guide for information about Calendar.
Constant Summary
Constants inherited from OandaAPI::ResourceBase
OandaAPI::ResourceBase::NOT_PLURALIZED
Instance Attribute Summary collapse
-
#actual ⇒ Object
Returns the value of attribute actual.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#forecast ⇒ Object
Returns the value of attribute forecast.
-
#impact ⇒ Object
Returns the value of attribute impact.
-
#market ⇒ Object
Returns the value of attribute market.
-
#previous ⇒ Object
Returns the value of attribute previous.
-
#region ⇒ Object
Returns the value of attribute region.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#title ⇒ Object
Returns the value of attribute title.
-
#unit ⇒ Object
Returns the value of attribute unit.
Attributes inherited from OandaAPI::ResourceBase
Instance Method Summary collapse
Methods inherited from OandaAPI::ResourceBase
class_from_symbol, #initialize, labs_resource?, pluralize, #to_json
Constructor Details
This class inherits a constructor from OandaAPI::ResourceBase
Instance Attribute Details
#actual ⇒ Object
Returns the value of attribute actual.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def actual @actual end |
#currency ⇒ Object
Returns the value of attribute currency.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def currency @currency end |
#forecast ⇒ Object
Returns the value of attribute forecast.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def forecast @forecast end |
#impact ⇒ Object
Returns the value of attribute impact.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def impact @impact end |
#market ⇒ Object
Returns the value of attribute market.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def market @market end |
#previous ⇒ Object
Returns the value of attribute previous.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def previous @previous end |
#region ⇒ Object
Returns the value of attribute region.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def region @region end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def @timestamp end |
#title ⇒ Object
Returns the value of attribute title.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def title @title end |
#unit ⇒ Object
Returns the value of attribute unit.
8 9 10 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 8 def unit @unit end |
Instance Method Details
#time ⇒ Object
19 20 21 |
# File 'lib/oanda_api/resource/labs/calendar_event.rb', line 19 def time Time.at().utc if end |