Class: Soundcloud9000::Models::User

Inherits:
Object
  • Object
show all
Defined in:
lib/soundcloud9000/models/user.rb

Overview

stores information on the current user we are looking at

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ User

Returns a new instance of User.



5
6
7
# File 'lib/soundcloud9000/models/user.rb', line 5

def initialize(hash)
  @hash = hash
end

Instance Method Details

#idObject



9
10
11
# File 'lib/soundcloud9000/models/user.rb', line 9

def id
  @hash['id']
end


21
22
23
# File 'lib/soundcloud9000/models/user.rb', line 21

def permalink
  @hash['permalink']
end

#uriObject



17
18
19
# File 'lib/soundcloud9000/models/user.rb', line 17

def uri
  @hash['uri']
end

#usernameObject



13
14
15
# File 'lib/soundcloud9000/models/user.rb', line 13

def username
  @hash['username']
end