lib/sqa/stock.rb in sqa-0.0.11 vs lib/sqa/stock.rb in sqa-0.0.12
- old
+ new
@@ -2,16 +2,18 @@
class SQA::Stock
attr_accessor :company_name
attr_accessor :df # The DataFrane
attr_accessor :ticker
+ attr_accessor :indicators
def initialize(ticker:, source: :yahoo_finance, type: :csv)
@ticker = ticker.downcase
@company_name = "Company Name"
@klass = "SQA::DataFrame::#{source.to_s.camelize}".constantize
@type = type
@filename = "#{@ticker}.#{type}"
+ @indicators = OpenStruct.new
update_the_dataframe
end