Class: QuickTicker::StockAttribute

Inherits:
Table
  • Object
show all
Defined in:
lib/stock_attribute.rb

Direct Known Subclasses

StockDescription, StockQuote, StockRelatedCompany

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Table

create_table_columns, #populate_table_columns

Constructor Details

#initialize(data_hash, stock) ⇒ StockAttribute

Returns a new instance of StockAttribute.



7
8
9
10
# File 'lib/stock_attribute.rb', line 7

def initialize(data_hash, stock)
	super(data_hash)
	self.stock = stock
end

Instance Attribute Details

#stockObject

Returns the value of attribute stock.



5
6
7
# File 'lib/stock_attribute.rb', line 5

def stock
  @stock
end