Class: TwitterSearch::Trend
- Inherits:
-
Object
- Object
- TwitterSearch::Trend
- Defined in:
- lib/trends.rb
Constant Summary collapse
- VARS =
[ :query, :name ]
Instance Attribute Summary collapse
-
#exclude_hashtags ⇒ Object
readonly
Returns the value of attribute exclude_hashtags.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Trend
constructor
A new instance of Trend.
Constructor Details
#initialize(opts) ⇒ Trend
7 8 9 10 |
# File 'lib/trends.rb', line 7 def initialize(opts) = !!opts['exclude_hashtags'] VARS.each { |each| instance_variable_set "@#{each}", opts[each.to_s] } end |
Instance Attribute Details
#exclude_hashtags ⇒ Object (readonly)
Returns the value of attribute exclude_hashtags.
5 6 7 |
# File 'lib/trends.rb', line 5 def end |