Class: WhopSDK::Models::Transfer::Origin::Company

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

An object representing a (sanitized) company.

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.

  • typename (Symbol, :Company) (defaults to: :Company)

    The typename of this object



# File 'lib/whop_sdk/models/transfer.rb', line 265

Instance Attribute Details

#idString

The ID (tag) of the company.

Returns:

  • (String)


245
# File 'lib/whop_sdk/models/transfer.rb', line 245

required :id, String

#routeString

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

Returns:

  • (String)


251
# File 'lib/whop_sdk/models/transfer.rb', line 251

required :route, String

#titleString

The title of the company.

Returns:

  • (String)


257
# File 'lib/whop_sdk/models/transfer.rb', line 257

required :title, String

#typenameSymbol, :Company

The typename of this object

Returns:

  • (Symbol, :Company)


263
# File 'lib/whop_sdk/models/transfer.rb', line 263

required :typename, const: :Company