Class: Revox::Models::Users::MeUpdateResponse::User

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/users/me_update_response.rb,
sig/revox/models/users/me_update_response.rbs

Overview

See Also:

  • Revox::Models::Users::MeUpdateResponse#user

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, created_at:, email:, first_name:, has_completed_onboarding:, last_name:, organization_id:, updated_at:, organization_country: nil) ⇒ Object

Some parameter documentations has been truncated, see Revox::Models::Users::MeUpdateResponse::User for more details.

The current authenticated user.

Parameters:

  • id (String)

    The unique identifier of the user.

  • created_at (Object)

    The time the user was created.

  • email (String)

    The email address of the user.

  • first_name (String, nil)

    The first name of the user.

  • has_completed_onboarding (Boolean)

    Whether the user has completed the onboarding tutorial.

  • last_name (String, nil)

    The last name of the user.

  • organization_id (String)

    The ID of the organization the user belongs to.

  • updated_at (Object)

    The time the user was last updated.

  • organization_country (String, nil) (defaults to: nil)

    ISO 3166-1 alpha-2 country code of the organization (e.g. FR). Used as the defau



# File 'lib/revox/models/users/me_update_response.rb', line 74

Instance Attribute Details

#created_atObject

The time the user was created.

Parameters:

  • value (top)

Returns:

  • (Object)


29
# File 'lib/revox/models/users/me_update_response.rb', line 29

required :created_at, Revox::Internal::Type::Unknown

#emailString

The email address of the user.

Parameters:

  • value (String)

Returns:

  • (String)


35
# File 'lib/revox/models/users/me_update_response.rb', line 35

required :email, String

#first_nameString?

The first name of the user.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


41
# File 'lib/revox/models/users/me_update_response.rb', line 41

required :first_name, String, nil?: true

#has_completed_onboardingBoolean

Whether the user has completed the onboarding tutorial.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


47
# File 'lib/revox/models/users/me_update_response.rb', line 47

required :has_completed_onboarding, Revox::Internal::Type::Boolean

#idString

The unique identifier of the user.

Parameters:

  • value (String)

Returns:

  • (String)


23
# File 'lib/revox/models/users/me_update_response.rb', line 23

required :id, String

#last_nameString?

The last name of the user.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


53
# File 'lib/revox/models/users/me_update_response.rb', line 53

required :last_name, String, nil?: true

#organization_countryString?

ISO 3166-1 alpha-2 country code of the organization (e.g. FR). Used as the default region when normalizing national-format phone numbers.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


72
# File 'lib/revox/models/users/me_update_response.rb', line 72

optional :organization_country, String, nil?: true

#organization_idString

The ID of the organization the user belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


59
# File 'lib/revox/models/users/me_update_response.rb', line 59

required :organization_id, String

#updated_atObject

The time the user was last updated.

Parameters:

  • value (top)

Returns:

  • (Object)


65
# File 'lib/revox/models/users/me_update_response.rb', line 65

required :updated_at, Revox::Internal::Type::Unknown

Instance Method Details

#to_hash{

Returns:

  • ({)


60
# File 'sig/revox/models/users/me_update_response.rbs', line 60

def to_hash: -> {