Class/Module Index [+]

Quicksearch

Twitter::Place

Attributes

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

Public Instance Methods

bounding_box() click to toggle source

@return [Twitter::Geo]

# File lib/twitter/place.rb, line 10
def bounding_box
  @bounding_box ||= Twitter::GeoFactory.fetch_or_new(@attrs[:bounding_box])
end
country_code() click to toggle source

@return [String]

# File lib/twitter/place.rb, line 15
def country_code
  @country_code ||= @attrs[:country_code] || @attrs[:countryCode]
end
id() click to toggle source
# File lib/twitter/place.rb, line 29
def id
  @attrs[:id] || @attrs[:woeid]
end
parent_id() click to toggle source

@return [Integer]

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

@return [String]

# File lib/twitter/place.rb, line 25
def place_type
  @place_type ||= @attrs[:place_type] || @attrs[:placeType] && @attrs[:placeType][:name]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.