Class: Soundcloud9000::Models::User
- Inherits:
-
Object
- Object
- Soundcloud9000::Models::User
- Defined in:
- lib/soundcloud9000/models/user.rb
Overview
stores information on the current user we are looking at
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(hash) ⇒ User
constructor
A new instance of User.
- #permalink ⇒ Object
- #uri ⇒ Object
- #username ⇒ Object
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
#id ⇒ Object
9 10 11 |
# File 'lib/soundcloud9000/models/user.rb', line 9 def id @hash['id'] end |
#permalink ⇒ Object
21 22 23 |
# File 'lib/soundcloud9000/models/user.rb', line 21 def permalink @hash['permalink'] end |
#uri ⇒ Object
17 18 19 |
# File 'lib/soundcloud9000/models/user.rb', line 17 def uri @hash['uri'] end |
#username ⇒ Object
13 14 15 |
# File 'lib/soundcloud9000/models/user.rb', line 13 def username @hash['username'] end |