Class: WhopSDK::Models::MembershipListResponse::User

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/membership_list_response.rb

Overview

See Also:

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:, email:, name:, username:) ⇒ Object

Some parameter documentations has been truncated, see WhopSDK::Models::MembershipListResponse::User for more details.

The user who owns this membership. Null if the user account has been deleted.

Parameters:

  • id (String)

    The unique identifier for the user.

  • email (String, nil)

    The user’s email address. Requires the member:email:read permission to access. N

  • name (String, nil)

    The user’s display name shown on their public profile.

  • username (String)

    The user’s unique username shown on their public profile.



# File 'lib/whop_sdk/models/membership_list_response.rb', line 323

Instance Attribute Details

#emailString?

The user’s email address. Requires the member:email:read permission to access. Null if not authorized.

Returns:

  • (String, nil)


309
# File 'lib/whop_sdk/models/membership_list_response.rb', line 309

required :email, String, nil?: true

#idString

The unique identifier for the user.

Returns:

  • (String)


302
# File 'lib/whop_sdk/models/membership_list_response.rb', line 302

required :id, String

#nameString?

The user’s display name shown on their public profile.

Returns:

  • (String, nil)


315
# File 'lib/whop_sdk/models/membership_list_response.rb', line 315

required :name, String, nil?: true

#usernameString

The user’s unique username shown on their public profile.

Returns:

  • (String)


321
# File 'lib/whop_sdk/models/membership_list_response.rb', line 321

required :username, String