Construct a new GeoResults object from a response hash
@param response [Hash] @return [Twitter::Base]
# File lib/twitter/geo_results.rb, line 16 def from_response(response = {}) new(response[:body]) end
Initializes a new GeoResults object
@param attrs [Hash] @return [Twitter::GeoResults]
# File lib/twitter/geo_results.rb, line 25 def initialize(attrs = {}) @attrs = attrs @collection = Array(@attrs[:result][:places]).map do |place| Place.new(place) end end
Generated with the Darkfish Rdoc Generator 2.