Class: Twitter::Trend

Inherits:
Base
  • Object
show all
Defined in:
lib/twitter/trend.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Attribute Details

#eventsObject (readonly)

Returns the value of attribute events.



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

def events
  @events
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Returns the value of attribute promoted_content.



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

def promoted_content
  @promoted_content
end

#queryObject (readonly)

Returns the value of attribute query.



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

def query
  @query
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


9
10
11
# File 'lib/twitter/trend.rb', line 9

def ==(other)
  super || attr_equal(:name, other) || attrs_equal(other)
end