Class: Tweetkit::Response::Tweets::Expansions

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

Defined Under Namespace

Classes: Media, Places, Polls, Tweets, Users

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mediaObject

Returns the value of attribute media.



429
430
431
# File 'lib/tweetkit/response.rb', line 429

def media
  @media
end

#placesObject

Returns the value of attribute places.



429
430
431
# File 'lib/tweetkit/response.rb', line 429

def places
  @places
end

#pollsObject

Returns the value of attribute polls.



429
430
431
# File 'lib/tweetkit/response.rb', line 429

def polls
  @polls
end

#tweetsObject

Returns the value of attribute tweets.



429
430
431
# File 'lib/tweetkit/response.rb', line 429

def tweets
  @tweets
end

#usersObject

Returns the value of attribute users.



429
430
431
# File 'lib/tweetkit/response.rb', line 429

def users
  @users
end