Method: StockMarkit::Chart#elements

Defined in:
lib/stock-markit/chart.rb

#elementsArray

Returns List of normalized elements passed on instantiation.

Returns:

  • (Array)

    List of normalized elements passed on instantiation



86
87
88
# File 'lib/stock-markit/chart.rb', line 86

def elements
  @opts[:elements].map{ |element| {"Symbol" => element.symbol, "Type" => element.type, "Params" => [element.params]} }
end