Class: One40Proof::User

Inherits:
Object
  • Object
show all
Defined in:
lib/one40_proof/attributes/user.rb

Instance Method Summary collapse

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

#nameObject



12
13
14
# File 'lib/one40_proof/attributes/user.rb', line 12

def name
  @data['name']
end

#profile_image_urlObject



8
9
10
# File 'lib/one40_proof/attributes/user.rb', line 8

def profile_image_url
  @data['profile_image_url']
end

#screen_nameObject



20
21
22
# File 'lib/one40_proof/attributes/user.rb', line 20

def screen_name
  @data['screen_name']
end

#user_idObject



16
17
18
# File 'lib/one40_proof/attributes/user.rb', line 16

def user_id
  @data['id']
end