Class: MyTradeWizard::OHLC
- Inherits:
-
Object
- Object
- MyTradeWizard::OHLC
- Defined in:
- lib/mytradewizard/ohlc.rb
Instance Method Summary collapse
- #close ⇒ Object
- #high ⇒ Object
-
#initialize(hash) ⇒ OHLC
constructor
A new instance of OHLC.
- #low ⇒ Object
- #open ⇒ Object
Constructor Details
#initialize(hash) ⇒ OHLC
Returns a new instance of OHLC.
3 4 5 |
# File 'lib/mytradewizard/ohlc.rb', line 3 def initialize(hash) @hash = hash end |
Instance Method Details
#close ⇒ Object
15 16 17 |
# File 'lib/mytradewizard/ohlc.rb', line 15 def close @hash['Close'] end |
#high ⇒ Object
9 10 11 |
# File 'lib/mytradewizard/ohlc.rb', line 9 def high @hash['High'] end |
#low ⇒ Object
12 13 14 |
# File 'lib/mytradewizard/ohlc.rb', line 12 def low @hash['Low'] end |
#open ⇒ Object
6 7 8 |
# File 'lib/mytradewizard/ohlc.rb', line 6 def open @hash['Open'] end |