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.



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

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



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

def value
  @value ||= fetch
end