Class: QuickTicker::StockAttribute
- Defined in:
- lib/stock_attribute.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#stock ⇒ Object
Returns the value of attribute stock.
Instance Method Summary collapse
-
#initialize(data_hash, stock) ⇒ StockAttribute
constructor
A new instance of StockAttribute.
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
#stock ⇒ Object
Returns the value of attribute stock.
5 6 7 |
# File 'lib/stock_attribute.rb', line 5 def stock @stock end |