Class: WhopSDK::Models::ExperienceListResponse

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

Overview

Defined Under Namespace

Classes: App, Company, Image

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: , route: , title: ) ⇒ Object

The company that owns this experience.

Parameters:

  • id (String) (defaults to: )

    The ID (tag) of the company.

  • route (String) (defaults to: )

    The slug/route of the company on the Whop site.

  • title (String) (defaults to: )

    The title of the company.



# File 'lib/whop_sdk/models/experience_list_response.rb', line 49

Instance Attribute Details

#appWhopSDK::Models::ExperienceListResponse::App

The experience interface for this experience.



17
# File 'lib/whop_sdk/models/experience_list_response.rb', line 17

required :app, -> { WhopSDK::Models::ExperienceListResponse::App }

#companyWhopSDK::Models::ExperienceListResponse::Company

The company that owns this experience.



23
# File 'lib/whop_sdk/models/experience_list_response.rb', line 23

required :company, -> { WhopSDK::Models::ExperienceListResponse::Company }

#created_atTime

The timestamp of when this experience was created.

Returns:

  • (Time)


29
# File 'lib/whop_sdk/models/experience_list_response.rb', line 29

required :created_at, Time

#idString

The unique ID representing this experience

Returns:

  • (String)


11
# File 'lib/whop_sdk/models/experience_list_response.rb', line 11

required :id, String

#imageWhopSDK::Models::ExperienceListResponse::Image?

The logo for the experience.



35
# File 'lib/whop_sdk/models/experience_list_response.rb', line 35

required :image, -> { WhopSDK::Models::ExperienceListResponse::Image }, nil?: true

#nameString

The written name of the description.

Returns:

  • (String)


41
# File 'lib/whop_sdk/models/experience_list_response.rb', line 41

required :name, String

#orderString?

The order of the experience in the section

Returns:

  • (String, nil)


47
# File 'lib/whop_sdk/models/experience_list_response.rb', line 47

required :order, String, nil?: true