Class: OandaAPI::Resource::Candle

Inherits:
OandaAPI::ResourceBase show all
Defined in:
lib/oanda_api/resource/candle.rb

Overview

Candle value object. See the Oanda Developer Guide for information about Candles.

Defined Under Namespace

Modules: Format, Granularity

Constant Summary

Constants inherited from OandaAPI::ResourceBase

OandaAPI::ResourceBase::NOT_PLURALIZED

Instance Attribute Summary collapse

Attributes inherited from OandaAPI::ResourceBase

#location

Method Summary

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

#close_askObject

Returns the value of attribute close_ask.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def close_ask
  @close_ask
end

#close_bidObject

Returns the value of attribute close_bid.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def close_bid
  @close_bid
end

#close_midObject

Returns the value of attribute close_mid.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def close_mid
  @close_mid
end

#completeObject Also known as: complete?

Returns the value of attribute complete.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def complete
  @complete
end

#high_askObject

Returns the value of attribute high_ask.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def high_ask
  @high_ask
end

#high_bidObject

Returns the value of attribute high_bid.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def high_bid
  @high_bid
end

#high_midObject

Returns the value of attribute high_mid.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def high_mid
  @high_mid
end

#low_askObject

Returns the value of attribute low_ask.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def low_ask
  @low_ask
end

#low_bidObject

Returns the value of attribute low_bid.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def low_bid
  @low_bid
end

#low_midObject

Returns the value of attribute low_mid.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def low_mid
  @low_mid
end

#open_askObject

Returns the value of attribute open_ask.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def open_ask
  @open_ask
end

#open_bidObject

Returns the value of attribute open_bid.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def open_bid
  @open_bid
end

#open_midObject

Returns the value of attribute open_mid.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def open_mid
  @open_mid
end

#timeObject

Returns the value of attribute time.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def time
  @time
end

#volumeObject

Returns the value of attribute volume.



51
52
53
# File 'lib/oanda_api/resource/candle.rb', line 51

def volume
  @volume
end