Class: Sentdm::Models::UserResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/user_response.rb

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: nil, created_at: nil, email: nil, invited_at: nil, last_login_at: nil, name: nil, role: nil, status: nil, updated_at: nil) ⇒ Object

User response for v3 API

Parameters:

  • id (String) (defaults to: nil)

    User unique identifier

  • created_at (Time) (defaults to: nil)

    When the user was added to the organization

  • email (String) (defaults to: nil)

    User email address

  • invited_at (Time, nil) (defaults to: nil)

    When the user was invited

  • last_login_at (Time, nil) (defaults to: nil)

    When the user last logged in

  • name (String) (defaults to: nil)

    User full name

  • role (String) (defaults to: nil)

    User role in the organization: admin, billing, developer

  • status (String) (defaults to: nil)

    User status: active, invited, suspended, rejected

  • updated_at (Time, nil) (defaults to: nil)

    When the user record was last updated



# File 'lib/sentdm/models/user_response.rb', line 60

Instance Attribute Details

#created_atTime?

When the user was added to the organization

Returns:

  • (Time, nil)


16
# File 'lib/sentdm/models/user_response.rb', line 16

optional :created_at, Time

#emailString?

User email address

Returns:

  • (String, nil)


22
# File 'lib/sentdm/models/user_response.rb', line 22

optional :email, String

#idString?

User unique identifier

Returns:

  • (String, nil)


10
# File 'lib/sentdm/models/user_response.rb', line 10

optional :id, String

#invited_atTime?

When the user was invited

Returns:

  • (Time, nil)


28
# File 'lib/sentdm/models/user_response.rb', line 28

optional :invited_at, Time, nil?: true

#last_login_atTime?

When the user last logged in

Returns:

  • (Time, nil)


34
# File 'lib/sentdm/models/user_response.rb', line 34

optional :last_login_at, Time, nil?: true

#nameString?

User full name

Returns:

  • (String, nil)


40
# File 'lib/sentdm/models/user_response.rb', line 40

optional :name, String

#roleString?

User role in the organization: admin, billing, developer

Returns:

  • (String, nil)


46
# File 'lib/sentdm/models/user_response.rb', line 46

optional :role, String

#statusString?

User status: active, invited, suspended, rejected

Returns:

  • (String, nil)


52
# File 'lib/sentdm/models/user_response.rb', line 52

optional :status, String

#updated_atTime?

When the user record was last updated

Returns:

  • (Time, nil)


58
# File 'lib/sentdm/models/user_response.rb', line 58

optional :updated_at, Time, nil?: true