Class: FortyTwo::Response::Model::User
- Defined in:
- lib/fortytwo/responses/models/user.rb
Instance Attribute Summary collapse
-
#achievements ⇒ Object
readonly
Returns the value of attribute achievements.
-
#campus ⇒ Object
readonly
Returns the value of attribute campus.
-
#correction_point ⇒ Object
readonly
Returns the value of attribute correction_point.
-
#cursus_users ⇒ Object
readonly
Returns the value of attribute cursus_users.
-
#displayname ⇒ Object
readonly
Returns the value of attribute displayname.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#expertises_users ⇒ Object
readonly
Returns the value of attribute expertises_users.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
-
#partnerships ⇒ Object
readonly
Returns the value of attribute partnerships.
-
#patroned ⇒ Object
readonly
Returns the value of attribute patroned.
-
#patroning ⇒ Object
readonly
Returns the value of attribute patroning.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#pool_month ⇒ Object
readonly
Returns the value of attribute pool_month.
-
#pool_year ⇒ Object
readonly
Returns the value of attribute pool_year.
-
#projects_users ⇒ Object
readonly
Returns the value of attribute projects_users.
-
#staff ⇒ Object
readonly
Returns the value of attribute staff.
-
#titles ⇒ Object
readonly
Returns the value of attribute titles.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#wallet ⇒ Object
readonly
Returns the value of attribute wallet.
Instance Method Summary collapse
-
#initialize(json) ⇒ User
constructor
A new instance of User.
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
#achievements ⇒ Object (readonly)
Returns the value of attribute achievements.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def achievements @achievements end |
#campus ⇒ Object (readonly)
Returns the value of attribute campus.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def campus @campus end |
#correction_point ⇒ Object (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_users ⇒ Object (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 |
#displayname ⇒ Object (readonly)
Returns the value of attribute displayname.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def displayname @displayname end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def email @email end |
#expertises_users ⇒ Object (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_name ⇒ Object (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 |
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def groups @groups end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def id @id end |
#image_url ⇒ Object (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_name ⇒ Object (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 |
#location ⇒ Object (readonly)
Returns the value of attribute location.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def location @location end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def login @login end |
#partnerships ⇒ Object (readonly)
Returns the value of attribute partnerships.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def partnerships @partnerships end |
#patroned ⇒ Object (readonly)
Returns the value of attribute patroned.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def patroned @patroned end |
#patroning ⇒ Object (readonly)
Returns the value of attribute patroning.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def patroning @patroning end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def phone @phone end |
#pool_month ⇒ Object (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_year ⇒ Object (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_users ⇒ Object (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 |
#staff ⇒ Object (readonly)
Returns the value of attribute staff.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def staff @staff end |
#titles ⇒ Object (readonly)
Returns the value of attribute titles.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def titles @titles end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def url @url end |
#wallet ⇒ Object (readonly)
Returns the value of attribute wallet.
12 13 14 |
# File 'lib/fortytwo/responses/models/user.rb', line 12 def wallet @wallet end |