Parent

Included Modules

Class/Module Index [+]

Quicksearch

Twitter::GeoResults

Attributes

attrs[R]
to_h[R]
to_hash[R]
to_hsh[R]

Public Class Methods

from_response(response = {}) click to toggle source

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
new(attrs = {}) click to toggle source

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

Public Instance Methods

token() click to toggle source

@return [String]

# File lib/twitter/geo_results.rb, line 33
def token
  @attrs[:token]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.