Class: Privy::Models::LinkedAccountTwitchInput

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

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(subject:, username: nil, type: :twitch_oauth) ⇒ Object

The payload for importing a Twitch account.

Parameters:

  • subject (String)
  • username (String) (defaults to: nil)
  • type (Symbol, :twitch_oauth) (defaults to: :twitch_oauth)


# File 'lib/privy/models/linked_account_twitch_input.rb', line 21

Instance Attribute Details

#subjectString

Parameters:

  • value (String)

Returns:

  • (String)


9
# File 'lib/privy/models/linked_account_twitch_input.rb', line 9

required :subject, String

#typeSymbol, :twitch_oauth

Parameters:

  • value (:twitch_oauth)

Returns:

  • (Symbol, :twitch_oauth)


14
# File 'lib/privy/models/linked_account_twitch_input.rb', line 14

required :type, const: :twitch_oauth

#usernameString?

Parameters:

  • (String)

Returns:

  • (String, nil)


19
# File 'lib/privy/models/linked_account_twitch_input.rb', line 19

optional :username, String

Instance Method Details

#to_hash{ subject: String, type: :twitch_oauth, username: String }

Returns:

  • ({ subject: String, type: :twitch_oauth, username: String })


21
# File 'sig/privy/models/linked_account_twitch_input.rbs', line 21

def to_hash: -> { subject: String, type: :twitch_oauth, username: String }