Class: Atig::Agent::Timeline
Constant Summary collapse
- DEFAULT_INTERVAL =
60
Instance Method Summary collapse
-
#initialize(context, api, db) ⇒ Timeline
constructor
A new instance of Timeline.
- #interval ⇒ Object
- #path ⇒ Object
- #source ⇒ Object
Methods included from ExceptionUtil
Constructor Details
#initialize(context, api, db) ⇒ Timeline
Returns a new instance of Timeline.
9 10 11 12 13 |
# File 'lib/atig/agent/timeline.rb', line 9 def initialize(context, api, db) @opts = context.opts return if @opts.stream super end |
Instance Method Details
#interval ⇒ Object
15 16 17 |
# File 'lib/atig/agent/timeline.rb', line 15 def interval @interval ||= @opts.interval.nil? ? DEFAULT_INTERVAL : @opts.interval.to_i end |
#path ⇒ Object
19 |
# File 'lib/atig/agent/timeline.rb', line 19 def path; '/statuses/home_timeline' end |
#source ⇒ Object
20 |
# File 'lib/atig/agent/timeline.rb', line 20 def source; :timeline end |