Class: OandaAPI::Resource::Labs::SpreadHistory::Tuple

Inherits:
Object
  • Object
show all
Defined in:
lib/oanda_api/resource/labs/spread_history.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(timestamp, spread)
  @timestamp = timestamp
  @spread = spread
end

Instance Attribute Details

#spreadObject

Returns the value of attribute spread.



41
42
43
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 41

def spread
  @spread
end

#timeObject

Returns the value of attribute time.



41
42
43
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 41

def time
  @time
end

#timestampObject

Returns the value of attribute timestamp.



41
42
43
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 41

def timestamp
  @timestamp
end

Instance Method Details

#to_sObject



54
55
56
# File 'lib/oanda_api/resource/labs/spread_history.rb', line 54

def to_s
  spread
end