Sha256: e3add67397393f7007abfc27efef90ccdfed9806e562bb33f43e00e1b59a1d43
Contents?: true
Size: 629 Bytes
Versions: 3
Compression:
Stored size: 629 Bytes
Contents
require 'twitter/enumerable' require 'twitter/utils' module Twitter class GeoResults include Twitter::Enumerable include Twitter::Utils attr_reader :attrs alias_method :to_h, :attrs deprecate_alias :to_hash, :to_h deprecate_alias :to_hsh, :to_h # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.11.0 | lib/twitter/geo_results.rb |
twitter-5.10.0 | lib/twitter/geo_results.rb |
twitter-5.9.0 | lib/twitter/geo_results.rb |