Class: WhopSDK::Models::App::RequestedPermission::PermissionAction

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/app.rb,
sig/whop_sdk/models/app.rbs

Overview

See Also:

  • WhopSDK::Models::App::RequestedPermission#permission_action

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

#initializePermissionAction

Returns a new instance of PermissionAction.

Parameters:

  • action: (String)
  • name: (String)


254
# File 'sig/whop_sdk/models/app.rbs', line 254

def initialize: (action: String, name: String) -> void

Instance Attribute Details

#actionString

The identifier of the action.

Parameters:

  • value (String)

Returns:

  • (String)


423
# File 'lib/whop_sdk/models/app.rb', line 423

required :action, String

#nameString

The human readable name of the action.

Parameters:

  • value (String)

Returns:

  • (String)


429
# File 'lib/whop_sdk/models/app.rb', line 429

required :name, String

Instance Method Details

#to_hash{ action: String, name: String }

Returns:

  • ({ action: String, name: String })


256
# File 'sig/whop_sdk/models/app.rbs', line 256

def to_hash: -> { action: String, name: String }