Class: FortyTwo::Response::User

Inherits:
Base
  • Object
show all
Defined in:
lib/fortytwo/responses/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ User

Returns a new instance of User.



9
10
11
# File 'lib/fortytwo/responses/user.rb', line 9

def initialize(json)
  @user = parse(json, Model::User)
end

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.



7
8
9
# File 'lib/fortytwo/responses/user.rb', line 7

def user
  @user
end