Parent

Included Modules

Twitter::Location

Represents a location in Twitter

Public Class Methods

attributes() click to toggle source
     # File lib/twitter/model.rb, line 166
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
171:     def country_code
172:       @countryCode
173:     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
189:     def inspect
190:       "#{name} / #{woeid} / #{countryCode}\n#{url}\n"
191:     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
177:     def parent_id
178:       @parentid
179:     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
183:     def place_type
184:       @place_type
185:     end

Protected Instance Methods

init() click to toggle source
     # File lib/twitter/model.rb, line 194
194:       def init
195:         puts @placeType
196:         @placeType = ::Twitter::PlaceType.new(:name => @placeType["name"], 
197:                                               :code => @placeType["code"]) if @placeType.is_a?(Hash)
198:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.