Class: Twitter::Stats::Count

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter-stats.rb

Instance Method Summary collapse

Constructor Details

#initialize(username, keyword, days_ago = 356) ⇒ Count

Returns a new instance of Count.



10
11
12
13
14
# File 'lib/twitter-stats.rb', line 10

def initialize(username, keyword, days_ago = 356)
  @username = username.to_s
  @keyword = keyword.to_s
  @days_ago = days_ago.to_i
end

Instance Method Details

#valueObject



16
17
18
# File 'lib/twitter-stats.rb', line 16

def value
  @value ||= fetch
end