class BAWSAQ::Stock
Constants
- ATTRIBUTES
Public Class Methods
new(stock_hash)
click to toggle source
# File lib/bawsaq/stock.rb, line 28 def initialize(stock_hash) ATTRIBUTES.each do |key, attr| send("#{attr}=", stock_hash[key]) end end
Private Instance Methods
price_history=(value)
click to toggle source
# File lib/bawsaq/stock.rb, line 44 def price_history=(value) @price_history = value.to_s.split(',').map(&:to_f) end