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

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

Defined Under Namespace

Classes: User

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(users) ⇒ Users

Returns a new instance of Users.



529
530
531
532
533
# File 'lib/tweetkit/response.rb', line 529

def initialize(users)
  return unless users

  @users = users.collect { |user| User.new(user) }
end

Instance Attribute Details

#usersObject

Returns the value of attribute users.



527
528
529
# File 'lib/tweetkit/response.rb', line 527

def users
  @users
end