Class: Tweetkit::Response::Tweets::Expansions
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Expansions
- Defined in:
- lib/tweetkit/response.rb
Defined Under Namespace
Classes: Media, Places, Polls, Tweets, Users
Instance Attribute Summary collapse
-
#media ⇒ Object
Returns the value of attribute media.
-
#places ⇒ Object
Returns the value of attribute places.
-
#polls ⇒ Object
Returns the value of attribute polls.
-
#tweets ⇒ Object
Returns the value of attribute tweets.
-
#users ⇒ Object
Returns the value of attribute users.
Instance Method Summary collapse
-
#initialize(expansions) ⇒ Expansions
constructor
A new instance of Expansions.
Constructor Details
#initialize(expansions) ⇒ Expansions
Returns a new instance of Expansions.
431 432 433 434 435 436 437 438 439 |
# File 'lib/tweetkit/response.rb', line 431 def initialize(expansions) return unless expansions @media = Media.new(expansions['media']) @places = expansions['places'] @polls = expansions['polls'] @tweets = Tweets.new(expansions['tweets']) @users = Users.new(expansions['users']) end |
Instance Attribute Details
#media ⇒ Object
Returns the value of attribute media.
429 430 431 |
# File 'lib/tweetkit/response.rb', line 429 def media @media end |
#places ⇒ Object
Returns the value of attribute places.
429 430 431 |
# File 'lib/tweetkit/response.rb', line 429 def places @places end |
#polls ⇒ Object
Returns the value of attribute polls.
429 430 431 |
# File 'lib/tweetkit/response.rb', line 429 def polls @polls end |
#tweets ⇒ Object
Returns the value of attribute tweets.
429 430 431 |
# File 'lib/tweetkit/response.rb', line 429 def tweets @tweets end |
#users ⇒ Object
Returns the value of attribute users.
429 430 431 |
# File 'lib/tweetkit/response.rb', line 429 def users @users end |