Class: Tweetkit::Response::Tweets::Tweet::Geo

Inherits:
Object
  • Object
show all
Defined in:
lib/tweetkit/response.rb

Defined Under Namespace

Classes: Coordinates

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(geo) ⇒ Geo

Returns a new instance of Geo.



365
366
367
368
369
370
# File 'lib/tweetkit/response.rb', line 365

def initialize(geo)
  return unless geo

  @coordinates = Coordinates.new(geo['coordinates'])
  @place_id = geo['place_id']
end

Instance Attribute Details

#coordinatesObject

Returns the value of attribute coordinates.



363
364
365
# File 'lib/tweetkit/response.rb', line 363

def coordinates
  @coordinates
end

#place_idObject

Returns the value of attribute place_id.



363
364
365
# File 'lib/tweetkit/response.rb', line 363

def place_id
  @place_id
end