Class: Tweetkit::Response::Tweets::Expansions::Users::User
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Expansions::Users::User
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(user) ⇒ User
constructor
A new instance of User.
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
#id ⇒ Object
Returns the value of attribute id.
536 537 538 |
# File 'lib/tweetkit/response.rb', line 536 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
536 537 538 |
# File 'lib/tweetkit/response.rb', line 536 def name @name end |
#username ⇒ Object
Returns the value of attribute username.
536 537 538 |
# File 'lib/tweetkit/response.rb', line 536 def username @username end |