Sha256: 36d6c8f248a95a3c3f607cd71173b7bfbf4b166e31952179966a981231dd584d
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 Bytes
Contents
require 'twitter/enumerable' require 'twitter/utils' module Twitter class GeoResults include Twitter::Enumerable include Twitter::Utils # @return [Hash] attr_reader :attrs alias to_h attrs alias to_hash to_h deprecate_alias :to_hsh, :to_hash # Initializes a new GeoResults object # # @param attrs [Hash] # @return [Twitter::GeoResults] def initialize(attrs = {}) @attrs = attrs @collection = @attrs[:result].fetch(:places, []).collect do |place| Place.new(place) end end # @return [String] def token @attrs[:token] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twitter-6.1.0 | lib/twitter/geo_results.rb |
twitter-6.0.0 | lib/twitter/geo_results.rb |
twitter-5.17.0 | lib/twitter/geo_results.rb |
twitter-5.16.0 | lib/twitter/geo_results.rb |