Class: LessonlyApi::ResourceType::User
- Defined in:
- lib/lessonly_api/resource_type/user.rb
Overview
Class represents API response as a Ruby object.
Instance Method Summary collapse
-
#archived_at ⇒ DateTime
Timestamp of the user’s archiving.
-
#archived_by_user_id ⇒ Inteher
ID of a user who archived the given user.
-
#business_unit ⇒ String
Business unit the user.
-
#custom_user_field_data ⇒ Array
Array of hashes with custom fields.
-
#department ⇒ String
Name of the user’s department.
-
#email ⇒ String
An email of the user.
-
#ext_uid ⇒ String
External ID of the user.
-
#groups ⇒ ResourceType::UserGroup
The list of a user’s group memberships and groups the user is managing.
-
#hire_date ⇒ Date
Date of the user’s hire.
-
#id ⇒ Integer
ID of the user.
-
#job_title ⇒ String
Title of the user’s job.
-
#locale ⇒ String
Locale of the user.
-
#location ⇒ String
Location of the user.
-
#manager_name ⇒ String
Name of the user’s manager.
-
#mobile_phone_number ⇒ String
Phone number of the user.
-
#name ⇒ String
A name of the user.
-
#resource_type ⇒ String
Type of the resource.
-
#role ⇒ String
A role of the user.
-
#role_id ⇒ Integer
ID of a user’s role.
-
#type ⇒ String
Type of the resource.
Methods inherited from Base
#attributes, dump, fields, from_json, #initialize, load
Constructor Details
This class inherits a constructor from LessonlyApi::ResourceType::Base
Instance Method Details
#archived_at ⇒ DateTime
Returns timestamp of the user’s archiving.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 29
|
#archived_by_user_id ⇒ Inteher
Returns ID of a user who archived the given user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 32
|
#business_unit ⇒ String
Returns business unit the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 38
|
#custom_user_field_data ⇒ Array
Returns array of hashes with custom fields.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 59
|
#department ⇒ String
Returns name of the user’s department.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 41
|
#email ⇒ String
Returns an email of the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 17
|
#ext_uid ⇒ String
Returns external ID of the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 14
|
#groups ⇒ ResourceType::UserGroup
Returns the list of a user’s group memberships and groups the user is managing.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/lessonly_api/resource_type/user.rb', line 65 fields( :id, :resource_type, :type, :ext_uid, :email, :name, :role, :role_id, {archived_at: :date_time}, :archived_by_user_id, :job_title, :business_unit, :department, :location, :locale, {hire_date: :date}, :manager_name, :mobile_phone_number, :custom_user_field_data, {groups: :user_group} ) |
#hire_date ⇒ Date
Returns date of the user’s hire.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 50
|
#id ⇒ Integer
Returns ID of the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 5
|
#job_title ⇒ String
Returns title of the user’s job.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 35
|
#locale ⇒ String
Returns locale of the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 47
|
#location ⇒ String
Returns location of the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 44
|
#manager_name ⇒ String
Returns name of the user’s manager.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 53
|
#mobile_phone_number ⇒ String
Returns phone number of the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 56
|
#name ⇒ String
Returns a name of the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 20
|
#resource_type ⇒ String
Returns type of the resource.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 8
|
#role ⇒ String
Returns a role of the user.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 23
|
#role_id ⇒ Integer
Returns ID of a user’s role.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 26
|
#type ⇒ String
Returns type of the resource.
|
# File 'lib/lessonly_api/resource_type/user.rb', line 11
|