Class: FortyTwo::Response::Model::User

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ User

Returns a new instance of User.



19
20
21
22
23
24
25
26
27
# File 'lib/fortytwo/responses/models/user.rb', line 19

def initialize(json)
  super(json)

  @cursus_users       = parse(@cursus_users, CursusUser)
  @projects_users     = parse(@projects_users, ProjectUser)
  @expertises_users   = parse(@expertises_users, ExpertiseUser)
  @campus             = parse(@campus, Campus)
  @achievements       = parse(@achievements, Achievement)
end

Instance Attribute Details

#achievementsObject (readonly)

Returns the value of attribute achievements.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def achievements
  @achievements
end

#campusObject (readonly)

Returns the value of attribute campus.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def campus
  @campus
end

#correction_pointObject (readonly)

Returns the value of attribute correction_point.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def correction_point
  @correction_point
end

#cursus_usersObject (readonly)

Returns the value of attribute cursus_users.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def cursus_users
  @cursus_users
end

#displaynameObject (readonly)

Returns the value of attribute displayname.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def displayname
  @displayname
end

#emailObject (readonly)

Returns the value of attribute email.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def email
  @email
end

#expertises_usersObject (readonly)

Returns the value of attribute expertises_users.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def expertises_users
  @expertises_users
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def first_name
  @first_name
end

#groupsObject (readonly)

Returns the value of attribute groups.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def groups
  @groups
end

#idObject (readonly)

Returns the value of attribute id.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def id
  @id
end

#image_urlObject (readonly)

Returns the value of attribute image_url.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def image_url
  @image_url
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def last_name
  @last_name
end

#locationObject (readonly)

Returns the value of attribute location.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def location
  @location
end

#loginObject (readonly)

Returns the value of attribute login.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def 
  @login
end

#partnershipsObject (readonly)

Returns the value of attribute partnerships.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def partnerships
  @partnerships
end

#patronedObject (readonly)

Returns the value of attribute patroned.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def patroned
  @patroned
end

#patroningObject (readonly)

Returns the value of attribute patroning.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def patroning
  @patroning
end

#phoneObject (readonly)

Returns the value of attribute phone.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def phone
  @phone
end

#pool_monthObject (readonly)

Returns the value of attribute pool_month.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def pool_month
  @pool_month
end

#pool_yearObject (readonly)

Returns the value of attribute pool_year.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def pool_year
  @pool_year
end

#projects_usersObject (readonly)

Returns the value of attribute projects_users.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def projects_users
  @projects_users
end

#staffObject (readonly)

Returns the value of attribute staff.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def staff
  @staff
end

#titlesObject (readonly)

Returns the value of attribute titles.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def titles
  @titles
end

#urlObject (readonly)

Returns the value of attribute url.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def url
  @url
end

#walletObject (readonly)

Returns the value of attribute wallet.



12
13
14
# File 'lib/fortytwo/responses/models/user.rb', line 12

def wallet
  @wallet
end