Class: Yafin::HistoricalQuote
- Inherits:
-
Object
- Object
- Yafin::HistoricalQuote
- Defined in:
- lib/yafin/historical_quote.rb
Instance Attribute Summary collapse
-
#adj_close ⇒ Object
Returns the value of attribute adj_close.
-
#close ⇒ Object
Returns the value of attribute close.
-
#date ⇒ Object
Returns the value of attribute date.
-
#high ⇒ Object
Returns the value of attribute high.
-
#low ⇒ Object
Returns the value of attribute low.
-
#open ⇒ Object
Returns the value of attribute open.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#volume ⇒ Object
Returns the value of attribute volume.
Instance Method Summary collapse
-
#initialize(args, symbol) ⇒ HistoricalQuote
constructor
A new instance of HistoricalQuote.
Constructor Details
#initialize(args, symbol) ⇒ HistoricalQuote
Returns a new instance of HistoricalQuote.
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/yafin/historical_quote.rb', line 4 def initialize args, symbol self.date = args[0] self.open = args[1] self.high = args[2] self.low = args[3] self.close = args[4] self.volume = args[5] self.adj_close = args[6] self.symbol = symbol end |
Instance Attribute Details
#adj_close ⇒ Object
Returns the value of attribute adj_close.
2 3 4 |
# File 'lib/yafin/historical_quote.rb', line 2 def adj_close @adj_close end |
#close ⇒ Object
Returns the value of attribute close.
2 3 4 |
# File 'lib/yafin/historical_quote.rb', line 2 def close @close end |
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/yafin/historical_quote.rb', line 2 def date @date end |
#high ⇒ Object
Returns the value of attribute high.
2 3 4 |
# File 'lib/yafin/historical_quote.rb', line 2 def high @high end |
#low ⇒ Object
Returns the value of attribute low.
2 3 4 |
# File 'lib/yafin/historical_quote.rb', line 2 def low @low end |
#open ⇒ Object
Returns the value of attribute open.
2 3 4 |
# File 'lib/yafin/historical_quote.rb', line 2 def open @open end |
#symbol ⇒ Object
Returns the value of attribute symbol.
2 3 4 |
# File 'lib/yafin/historical_quote.rb', line 2 def symbol @symbol end |
#volume ⇒ Object
Returns the value of attribute volume.
2 3 4 |
# File 'lib/yafin/historical_quote.rb', line 2 def volume @volume end |