Sha256: e24944314741f030e9bc3a994301488308476bba1765c1fa6646a4269436868a
Contents?: true
Size: 626 Bytes
Versions: 3
Compression:
Stored size: 626 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 = Array(@attrs[:result][: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.8.0 | lib/twitter/geo_results.rb |
twitter-5.7.1 | lib/twitter/geo_results.rb |
twitter-5.7.0 | lib/twitter/geo_results.rb |