Class: TwitterSearch::Trend

Inherits:
Object
  • Object
show all
Defined in:
lib/trends.rb

Constant Summary collapse

VARS =
[:query, :name]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Trend

Returns a new instance of Trend.



7
8
9
10
# File 'lib/trends.rb', line 7

def initialize(opts)
  @exclude_hashtags = !!opts['exclude_hashtags']
  VARS.each { |each| instance_variable_set "@#{each}", opts[each.to_s] }
end

Instance Attribute Details

#exclude_hashtagsObject (readonly)

Returns the value of attribute exclude_hashtags.



5
6
7
# File 'lib/trends.rb', line 5

def exclude_hashtags
  @exclude_hashtags
end