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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ User

Returns a new instance of User.



538
539
540
541
542
# File 'lib/tweetkit/response.rb', line 538

def initialize(user)
  @id = user['id']
  @name = user['name']
  @username = user['username']
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



536
537
538
# File 'lib/tweetkit/response.rb', line 536

def id
  @id
end

#nameObject

Returns the value of attribute name.



536
537
538
# File 'lib/tweetkit/response.rb', line 536

def name
  @name
end

#usernameObject

Returns the value of attribute username.



536
537
538
# File 'lib/tweetkit/response.rb', line 536

def username
  @username
end