Class: WhopSDK::Models::Experience::Product

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/experience.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: , route: , title: ) ⇒ Object

An object representing a (sanitized) access pass.

Parameters:

  • id (String) (defaults to: )

    The internal ID of the public product.

  • route (String) (defaults to: )

    The route of the product.

  • title (String) (defaults to: )

    The title of the product. Use for Whop 4.0.



# File 'lib/whop_sdk/models/experience.rb', line 199

Instance Attribute Details

#idString

The internal ID of the public product.

Returns:

  • (String)


185
# File 'lib/whop_sdk/models/experience.rb', line 185

required :id, String

#routeString

The route of the product.

Returns:

  • (String)


191
# File 'lib/whop_sdk/models/experience.rb', line 191

required :route, String

#titleString

The title of the product. Use for Whop 4.0.

Returns:

  • (String)


197
# File 'lib/whop_sdk/models/experience.rb', line 197

required :title, String