Parent

Class/Module Index [+]

Quicksearch

Twitter::Place

Attributes

attributes[R]
country[R]
full_name[R]
name[R]
woe_id[R]
woeid[R]

Public Instance Methods

==(other) click to toggle source

@param other [Twitter::Place] @return [Boolean]

# File lib/twitter/place.rb, line 21
def ==(other)
  other = coerce(other) if respond_to?(:coerce, true)
  super || kind_of?(self.class) && !woeid.nil? && other.respond_to?(:woeid) && woeid == other.woeid
end
country_code() click to toggle source

@return [String]

# File lib/twitter/place.rb, line 27
def country_code
  @attrs[:country_code] || @attrs[:countryCode] # rubocop:disable SymbolName
end
eql?(other) click to toggle source

@param other [Twitter::Place] @return [Boolean]

# File lib/twitter/place.rb, line 15
def eql?(other)
  super || instance_of?(other.class) && !woeid.nil? && other.respond_to?(:woeid) && woeid.eql?(other.woeid)
end
parent_id() click to toggle source

@return [Integer]

# File lib/twitter/place.rb, line 33
def parent_id
  @attrs[:parentid]
end
place_type() click to toggle source

@return [String]

# File lib/twitter/place.rb, line 39
def place_type
  @attrs[:place_type] || @attrs[:placeType] && @attrs[:placeType][:name] # rubocop:disable SymbolName
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.