Class: Tweetkit::Response::Tweets::Expansions::Places::Place
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Expansions::Places::Place
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#full_name ⇒ Object
Returns the value of attribute full_name.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(place) ⇒ Place
constructor
A new instance of Place.
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_name ⇒ Object
Returns the value of attribute full_name.
470 471 472 |
# File 'lib/tweetkit/response.rb', line 470 def full_name @full_name end |
#id ⇒ Object
Returns the value of attribute id.
470 471 472 |
# File 'lib/tweetkit/response.rb', line 470 def id @id end |