Class: OandaAPI::Resource::Candle
- Inherits:
-
OandaAPI::ResourceBase
- Object
- OandaAPI::ResourceBase
- OandaAPI::Resource::Candle
- 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
-
#close_ask ⇒ Object
Returns the value of attribute close_ask.
-
#close_bid ⇒ Object
Returns the value of attribute close_bid.
-
#close_mid ⇒ Object
Returns the value of attribute close_mid.
-
#complete ⇒ Object
(also: #complete?)
Returns the value of attribute complete.
-
#high_ask ⇒ Object
Returns the value of attribute high_ask.
-
#high_bid ⇒ Object
Returns the value of attribute high_bid.
-
#high_mid ⇒ Object
Returns the value of attribute high_mid.
-
#low_ask ⇒ Object
Returns the value of attribute low_ask.
-
#low_bid ⇒ Object
Returns the value of attribute low_bid.
-
#low_mid ⇒ Object
Returns the value of attribute low_mid.
-
#open_ask ⇒ Object
Returns the value of attribute open_ask.
-
#open_bid ⇒ Object
Returns the value of attribute open_bid.
-
#open_mid ⇒ Object
Returns the value of attribute open_mid.
-
#time ⇒ Object
Returns the value of attribute time.
-
#volume ⇒ Object
Returns the value of attribute volume.
Attributes inherited from OandaAPI::ResourceBase
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_ask ⇒ Object
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_bid ⇒ Object
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_mid ⇒ Object
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 |
#complete ⇒ Object 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_ask ⇒ Object
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_bid ⇒ Object
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_mid ⇒ Object
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_ask ⇒ Object
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_bid ⇒ Object
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_mid ⇒ Object
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_ask ⇒ Object
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_bid ⇒ Object
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_mid ⇒ Object
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 |
#time ⇒ Object
Returns the value of attribute time.
51 52 53 |
# File 'lib/oanda_api/resource/candle.rb', line 51 def time @time end |
#volume ⇒ Object
Returns the value of attribute volume.
51 52 53 |
# File 'lib/oanda_api/resource/candle.rb', line 51 def volume @volume end |