Class: OandaAPI::Resource::Labs::SpreadHistory::Tuple
- Inherits:
-
Object
- Object
- OandaAPI::Resource::Labs::SpreadHistory::Tuple
- Defined in:
- lib/oanda_api/resource/labs/spread_history.rb
Instance Attribute Summary collapse
-
#spread ⇒ Object
Returns the value of attribute spread.
-
#time ⇒ Object
Returns the value of attribute time.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(timestamp, spread) ⇒ Tuple
constructor
A new instance of Tuple.
- #to_s ⇒ Object
Constructor Details
#initialize(timestamp, spread) ⇒ Tuple
Returns a new instance of Tuple.
45 46 47 48 |
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 45 def initialize(, spread) @timestamp = @spread = spread end |
Instance Attribute Details
#spread ⇒ Object
Returns the value of attribute spread.
41 42 43 |
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 41 def spread @spread end |
#time ⇒ Object
Returns the value of attribute time.
41 42 43 |
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 41 def time @time end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
41 42 43 |
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 41 def @timestamp end |
Instance Method Details
#to_s ⇒ Object
54 55 56 |
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 54 def to_s spread end |