Class: One40Proof::User
- Inherits:
-
Object
- Object
- One40Proof::User
- Defined in:
- lib/one40_proof/attributes/user.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ User
constructor
A new instance of User.
- #name ⇒ Object
- #profile_image_url ⇒ Object
- #screen_name ⇒ Object
- #user_id ⇒ Object
Constructor Details
#initialize(data) ⇒ User
Returns a new instance of User.
4 5 6 |
# File 'lib/one40_proof/attributes/user.rb', line 4 def initialize(data) @data = data end |
Instance Method Details
#name ⇒ Object
12 13 14 |
# File 'lib/one40_proof/attributes/user.rb', line 12 def name @data['name'] end |
#profile_image_url ⇒ Object
8 9 10 |
# File 'lib/one40_proof/attributes/user.rb', line 8 def profile_image_url @data['profile_image_url'] end |
#screen_name ⇒ Object
20 21 22 |
# File 'lib/one40_proof/attributes/user.rb', line 20 def screen_name @data['screen_name'] end |
#user_id ⇒ Object
16 17 18 |
# File 'lib/one40_proof/attributes/user.rb', line 16 def user_id @data['id'] end |