Class: TheCompaniesAPI::Generated::Models::User

Inherits:
Object
  • Object
show all
Defined in:
lib/thecompaniesapi/generated/models/user.rb

Overview

A user of the platform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ User

Initialize a new User

Parameters:

  • data (Hash) (defaults to: {})

    Initial data



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_modeString

Returns colorMode.

Returns:

  • (String)

    colorMode



12
13
14
# File 'lib/thecompaniesapi/generated/models/user.rb', line 12

def color_mode
  @color_mode
end

#created_atObject

Returns createdAt.

Returns:

  • (Object)

    createdAt



15
16
17
# File 'lib/thecompaniesapi/generated/models/user.rb', line 15

def created_at
  @created_at
end

#current_team_idObject

Returns currentTeamId.

Returns:

  • (Object)

    currentTeamId



18
19
20
# File 'lib/thecompaniesapi/generated/models/user.rb', line 18

def current_team_id
  @current_team_id
end

#emailString

Returns email.

Returns:

  • (String)

    email



21
22
23
# File 'lib/thecompaniesapi/generated/models/user.rb', line 21

def email
  @email
end

#email_freeObject

Returns emailFree.

Returns:

  • (Object)

    emailFree



24
25
26
# File 'lib/thecompaniesapi/generated/models/user.rb', line 24

def email_free
  @email_free
end

#email_verifiedObject

Returns emailVerified.

Returns:

  • (Object)

    emailVerified



27
28
29
# File 'lib/thecompaniesapi/generated/models/user.rb', line 27

def email_verified
  @email_verified
end

#email_verified_resent_atObject

Returns emailVerifiedResentAt.

Returns:

  • (Object)

    emailVerifiedResentAt



30
31
32
# File 'lib/thecompaniesapi/generated/models/user.rb', line 30

def email_verified_resent_at
  @email_verified_resent_at
end

#full_nameObject

Returns fullName.

Returns:

  • (Object)

    fullName



33
34
35
# File 'lib/thecompaniesapi/generated/models/user.rb', line 33

def full_name
  @full_name
end

#has_passwordObject

Returns hasPassword.

Returns:

  • (Object)

    hasPassword



36
37
38
# File 'lib/thecompaniesapi/generated/models/user.rb', line 36

def has_password
  @has_password
end

#idFloat

Returns id.

Returns:

  • (Float)

    id



39
40
41
# File 'lib/thecompaniesapi/generated/models/user.rb', line 39

def id
  @id
end

#localeObject

Returns locale.

Returns:

  • (Object)

    locale



42
43
44
# File 'lib/thecompaniesapi/generated/models/user.rb', line 42

def locale
  @locale
end

#picture_urlObject

Returns pictureUrl.

Returns:

  • (Object)

    pictureUrl



45
46
47
# File 'lib/thecompaniesapi/generated/models/user.rb', line 45

def picture_url
  @picture_url
end

#referralObject

Returns referral.

Returns:

  • (Object)

    referral



48
49
50
# File 'lib/thecompaniesapi/generated/models/user.rb', line 48

def referral
  @referral
end

#roleObject

Returns role.

Returns:

  • (Object)

    role



51
52
53
# File 'lib/thecompaniesapi/generated/models/user.rb', line 51

def role
  @role
end

Instance Method Details

#to_hashHash Also known as: to_h

Convert to hash

Returns:

  • (Hash)

    Hash representation



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