Class: Believe::Models::TeamMemberCreateParams::Member::Coach

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/believe/models/team_member_create_params.rb

Defined Under Namespace

Modules: MemberType

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(character_id:, specialty:, team_id:, years_with_team:, certifications: nil, member_type: nil, win_rate: nil) ⇒ Object

A coach or coaching staff member.

Parameters:

  • character_id (String)

    ID of the character (references /characters/id)

  • specialty (Symbol, ::Believe::Models::CoachSpecialty)

    Coaching specialty/role

  • team_id (String)

    ID of the team they belong to

  • years_with_team (Integer)

    Number of years with the current team

  • certifications (Array<String>) (defaults to: nil)

    Coaching certifications and licenses

  • member_type (Symbol, ::Believe::Models::TeamMemberCreateParams::Member::Coach::MemberType) (defaults to: nil)

    Discriminator field indicating this is a coach

  • win_rate (Float, nil) (defaults to: nil)

    Career win rate (0.0 to 1.0)



# File 'lib/believe/models/team_member_create_params.rb', line 171

Instance Attribute Details

#certificationsArray<String>?

Coaching certifications and licenses

Returns:

  • (Array<String>, nil)


157
# File 'lib/believe/models/team_member_create_params.rb', line 157

optional :certifications, ::Believe::Internal::Type::ArrayOf[String]

#character_idString

ID of the character (references /characters/id)

Returns:

  • (String)


133
# File 'lib/believe/models/team_member_create_params.rb', line 133

required :character_id, String

#member_typeSymbol, ...

Discriminator field indicating this is a coach



163
# File 'lib/believe/models/team_member_create_params.rb', line 163

optional :member_type, enum: -> { ::Believe::TeamMemberCreateParams::Member::Coach::MemberType }

#specialtySymbol, ::Believe::Models::CoachSpecialty

Coaching specialty/role



139
# File 'lib/believe/models/team_member_create_params.rb', line 139

required :specialty, enum: -> { ::Believe::CoachSpecialty }

#team_idString

ID of the team they belong to

Returns:

  • (String)


145
# File 'lib/believe/models/team_member_create_params.rb', line 145

required :team_id, String

#win_rateFloat?

Career win rate (0.0 to 1.0)

Returns:

  • (Float, nil)


169
# File 'lib/believe/models/team_member_create_params.rb', line 169

optional :win_rate, Float, nil?: true

#years_with_teamInteger

Number of years with the current team

Returns:

  • (Integer)


151
# File 'lib/believe/models/team_member_create_params.rb', line 151

required :years_with_team, Integer