Class: Vinapi::User
- Inherits:
-
Object
- Object
- Vinapi::User
- Defined in:
- lib/vinapi/user.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(data) ⇒ User
Returns a new instance of User.
3 4 5 6 7 8 9 10 11 |
# File 'lib/vinapi/user.rb', line 3 def initialize data @name = data[:username] @edition = data[:edition] @id = data[:userId] @key = data[:key] @avatarUrl = data[:avatarUrl] end |