Class: TheCompaniesAPI::Generated::Models::User
- Inherits:
-
Object
- Object
- TheCompaniesAPI::Generated::Models::User
- Defined in:
- lib/thecompaniesapi/generated/models/user.rb
Overview
A user of the platform.
Instance Attribute Summary collapse
-
#color_mode ⇒ String
ColorMode.
-
#created_at ⇒ Object
CreatedAt.
-
#current_team_id ⇒ Object
CurrentTeamId.
-
#email ⇒ String
Email.
-
#email_free ⇒ Object
EmailFree.
-
#email_verified ⇒ Object
EmailVerified.
-
#email_verified_resent_at ⇒ Object
EmailVerifiedResentAt.
-
#full_name ⇒ Object
FullName.
-
#has_password ⇒ Object
HasPassword.
-
#id ⇒ Float
Id.
-
#locale ⇒ Object
Locale.
-
#picture_url ⇒ Object
PictureUrl.
-
#referral ⇒ Object
Referral.
-
#role ⇒ Object
Role.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ User
constructor
Initialize a new User.
-
#to_hash ⇒ Hash
(also: #to_h)
Convert to hash.
Constructor Details
#initialize(data = {}) ⇒ User
Initialize a new User
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 57 def initialize(data = {}) @color_mode = data['colorMode'] @created_at = data['createdAt'] @current_team_id = data['currentTeamId'] @email = data['email'] @email_free = data['emailFree'] @email_verified = data['emailVerified'] @email_verified_resent_at = data['emailVerifiedResentAt'] @full_name = data['fullName'] @has_password = data['hasPassword'] @id = data['id'] @locale = data['locale'] @picture_url = data['pictureUrl'] @referral = data['referral'] @role = data['role'] end |
Instance Attribute Details
#color_mode ⇒ String
Returns colorMode.
12 13 14 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 12 def color_mode @color_mode end |
#created_at ⇒ Object
Returns createdAt.
15 16 17 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 15 def created_at @created_at end |
#current_team_id ⇒ Object
Returns currentTeamId.
18 19 20 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 18 def current_team_id @current_team_id end |
#email ⇒ String
Returns email.
21 22 23 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 21 def email @email end |
#email_free ⇒ Object
Returns emailFree.
24 25 26 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 24 def email_free @email_free end |
#email_verified ⇒ Object
Returns emailVerified.
27 28 29 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 27 def email_verified @email_verified end |
#email_verified_resent_at ⇒ Object
Returns emailVerifiedResentAt.
30 31 32 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 30 def email_verified_resent_at @email_verified_resent_at end |
#full_name ⇒ Object
Returns fullName.
33 34 35 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 33 def full_name @full_name end |
#has_password ⇒ Object
Returns hasPassword.
36 37 38 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 36 def has_password @has_password end |
#id ⇒ Float
Returns id.
39 40 41 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 39 def id @id end |
#locale ⇒ Object
Returns locale.
42 43 44 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 42 def locale @locale end |
#picture_url ⇒ Object
Returns pictureUrl.
45 46 47 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 45 def picture_url @picture_url end |
#referral ⇒ Object
Returns referral.
48 49 50 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 48 def referral @referral end |
#role ⇒ Object
Returns role.
51 52 53 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 51 def role @role end |
Instance Method Details
#to_hash ⇒ Hash Also known as: to_h
Convert to hash
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/thecompaniesapi/generated/models/user.rb', line 78 def to_hash { 'colorMode' => @color_mode, 'createdAt' => @created_at, 'currentTeamId' => @current_team_id, 'email' => @email, 'emailFree' => @email_free, 'emailVerified' => @email_verified, 'emailVerifiedResentAt' => @email_verified_resent_at, 'fullName' => @full_name, 'hasPassword' => @has_password, 'id' => @id, 'locale' => @locale, 'pictureUrl' => @picture_url, 'referral' => @referral, 'role' => @role, } end |