Class: Series

Inherits:
Object
  • Object
show all
Defined in:
lib/finviz_rails/series.rb

Constant Summary collapse

INTERVAL_OPTIONS =
["m", "w", "d", "i1", "i3", "i5", "i15"]

Instance Method Summary collapse

Constructor Details

#initialize(symbol, params, agent) ⇒ Series

Returns a new instance of Series.



2
3
4
5
6
# File 'lib/finviz_rails/series.rb', line 2

def initialize(symbol, params, agent)
  @symbol = symbol
  @params = params
  @agent = agent
end

Instance Method Details

#runObject



10
11
12
13
# File 'lib/finviz_rails/series.rb', line 10

def run
  @agent.get(url)
  result
end