Class: Yafin::HistoricalQuote

Inherits:
Object
  • Object
show all
Defined in:
lib/yafin/historical_quote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_closeObject

Returns the value of attribute adj_close.



2
3
4
# File 'lib/yafin/historical_quote.rb', line 2

def adj_close
  @adj_close
end

#closeObject

Returns the value of attribute close.



2
3
4
# File 'lib/yafin/historical_quote.rb', line 2

def close
  @close
end

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/yafin/historical_quote.rb', line 2

def date
  @date
end

#highObject

Returns the value of attribute high.



2
3
4
# File 'lib/yafin/historical_quote.rb', line 2

def high
  @high
end

#lowObject

Returns the value of attribute low.



2
3
4
# File 'lib/yafin/historical_quote.rb', line 2

def low
  @low
end

#openObject

Returns the value of attribute open.



2
3
4
# File 'lib/yafin/historical_quote.rb', line 2

def open
  @open
end

#symbolObject

Returns the value of attribute symbol.



2
3
4
# File 'lib/yafin/historical_quote.rb', line 2

def symbol
  @symbol
end

#volumeObject

Returns the value of attribute volume.



2
3
4
# File 'lib/yafin/historical_quote.rb', line 2

def volume
  @volume
end