Class: Twitter::Stats::Count
- Inherits:
-
Object
- Object
- Twitter::Stats::Count
- Defined in:
- lib/twitter-stats.rb
Instance Method Summary collapse
-
#initialize(username, keyword, days_ago = 356) ⇒ Count
constructor
A new instance of Count.
- #value ⇒ Object
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
#value ⇒ Object
15 16 17 |
# File 'lib/twitter-stats.rb', line 15 def value @value ||= fetch end |