class Twitter::Location
Represents a location in Twitter
Public Class Methods
attributes()
click to toggle source
# File lib/twitter/model.rb, line 166 def attributes; @@ATTRIBUTES; end
Public Instance Methods
country_code()
click to toggle source
Alias to countryCode
for those wanting to use consistent
naming convention for attribute
# File lib/twitter/model.rb, line 171 def country_code @countryCode end
inspect()
click to toggle source
Convenience method to output meaningful representation to STDOUT as per Ruby convention
# File lib/twitter/model.rb, line 189 def inspect "#{name} / #{woeid} / #{countryCode}\n#{url}\n" end
parent_id()
click to toggle source
Alias to parentid
for those wanting to use consistent naming
convention for attribute
# File lib/twitter/model.rb, line 177 def parent_id @parentid end
place_type()
click to toggle source
Alias to placeType
for those wanting to use consistent naming
convention for attribute
# File lib/twitter/model.rb, line 183 def place_type @place_type end
Protected Instance Methods
init()
click to toggle source
# File lib/twitter/model.rb, line 194 def init puts @placeType @placeType = ::Twitter::PlaceType.new(:name => @placeType["name"], :code => @placeType["code"]) if @placeType.is_a?(Hash) end