Class: Series
- Inherits:
-
Object
- Object
- Series
- Defined in:
- lib/finviz_rails/series.rb
Constant Summary collapse
- INTERVAL_OPTIONS =
["m", "w", "d", "i1", "i3", "i5", "i15"]
Instance Method Summary collapse
-
#initialize(symbol, params, agent) ⇒ Series
constructor
A new instance of Series.
- #run ⇒ Object
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
#run ⇒ Object
10 11 12 13 |
# File 'lib/finviz_rails/series.rb', line 10 def run @agent.get(url) result end |