Class: Tweetkit::Response::Tweets::Expansions::Places::Place

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(place) ⇒ Place

Returns a new instance of Place.



472
473
474
475
# File 'lib/tweetkit/response.rb', line 472

def initialize(place)
  @full_name = place['full_name']
  @id = place['id']
end

Instance Attribute Details

#full_nameObject

Returns the value of attribute full_name.



470
471
472
# File 'lib/tweetkit/response.rb', line 470

def full_name
  @full_name
end

#idObject

Returns the value of attribute id.



470
471
472
# File 'lib/tweetkit/response.rb', line 470

def id
  @id
end