Class: Vinapi::User

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

Instance Method Summary collapse

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