Class: Atig::Agent::Timeline

Inherits:
Agent
  • Object
show all
Defined in:
lib/atig/agent/timeline.rb

Constant Summary collapse

DEFAULT_INTERVAL =
60

Instance Method Summary collapse

Methods included from ExceptionUtil

daemon, safe

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

#intervalObject



15
16
17
# File 'lib/atig/agent/timeline.rb', line 15

def interval
  @interval ||= @opts.interval.nil? ? DEFAULT_INTERVAL : @opts.interval.to_i
end

#pathObject



19
# File 'lib/atig/agent/timeline.rb', line 19

def path; '/statuses/home_timeline' end

#sourceObject



20
# File 'lib/atig/agent/timeline.rb', line 20

def source; :timeline end