Class: Twitter::Trend

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Base

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

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Attribute Details

- (Object) events (readonly)

Returns the value of attribute events



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

def events
  @events
end

- (Object) name (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

- (Object) query (readonly)

Returns the value of attribute query



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

def query
  @query
end

- (Object) url (readonly)

Returns the value of attribute url



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

def url
  @url
end

Instance Method Details

- (Boolean) ==(other)

Parameters:

Returns:

  • (Boolean)


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

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