Class: Believe::Models::CharacterCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/believe/models/character_create_params.rb

Overview

Defined Under Namespace

Modules: SalaryGbp

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(background:, emotional_stats:, name:, personality_traits:, role:, date_of_birth: nil, email: nil, growth_arcs: nil, height_meters: nil, profile_image_url: nil, salary_gbp: nil, signature_quotes: nil, team_id: nil, request_options: {}) ⇒ Object

Parameters:

  • background (String)

    Character background and history

  • emotional_stats (::Believe::Models::EmotionalStats)

    Emotional intelligence stats

  • name (String)

    Character’s full name

  • personality_traits (Array<String>)

    Key personality traits

  • role (Symbol, ::Believe::Models::CharacterRole)

    Character’s role

  • date_of_birth (Date, nil) (defaults to: nil)

    Character’s date of birth

  • email (String, nil) (defaults to: nil)

    Character’s email address

  • growth_arcs (Array<::Believe::Models::GrowthArc>) (defaults to: nil)

    Character development across seasons

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

    Height in meters

  • profile_image_url (String, nil) (defaults to: nil)

    URL to character’s profile image

  • salary_gbp (Float, String, nil) (defaults to: nil)

    Annual salary in GBP

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

    Memorable quotes from this character

  • team_id (String, nil) (defaults to: nil)

    ID of the team they belong to

  • request_options (::Believe::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/believe/models/character_create_params.rb', line 88

Instance Attribute Details

#backgroundString

Character background and history

Returns:

  • (String)


14
# File 'lib/believe/models/character_create_params.rb', line 14

required :background, String

#date_of_birthDate?

Character’s date of birth

Returns:

  • (Date, nil)


44
# File 'lib/believe/models/character_create_params.rb', line 44

optional :date_of_birth, Date, nil?: true

#emailString?

Character’s email address

Returns:

  • (String, nil)


50
# File 'lib/believe/models/character_create_params.rb', line 50

optional :email, String, nil?: true

#emotional_stats::Believe::Models::EmotionalStats

Emotional intelligence stats



20
# File 'lib/believe/models/character_create_params.rb', line 20

required :emotional_stats, -> { ::Believe::EmotionalStats }

#growth_arcsArray<::Believe::Models::GrowthArc>?

Character development across seasons

Returns:



56
# File 'lib/believe/models/character_create_params.rb', line 56

optional :growth_arcs, -> { ::Believe::Internal::Type::ArrayOf[::Believe::GrowthArc] }

#height_metersFloat?

Height in meters

Returns:

  • (Float, nil)


62
# File 'lib/believe/models/character_create_params.rb', line 62

optional :height_meters, Float, nil?: true

#nameString

Character’s full name

Returns:

  • (String)


26
# File 'lib/believe/models/character_create_params.rb', line 26

required :name, String

#personality_traitsArray<String>

Key personality traits

Returns:

  • (Array<String>)


32
# File 'lib/believe/models/character_create_params.rb', line 32

required :personality_traits, ::Believe::Internal::Type::ArrayOf[String]

#profile_image_urlString?

URL to character’s profile image

Returns:

  • (String, nil)


68
# File 'lib/believe/models/character_create_params.rb', line 68

optional :profile_image_url, String, nil?: true

#roleSymbol, ::Believe::Models::CharacterRole

Character’s role



38
# File 'lib/believe/models/character_create_params.rb', line 38

required :role, enum: -> { ::Believe::CharacterRole }

#salary_gbpFloat, ...

Annual salary in GBP

Returns:

  • (Float, String, nil)


74
# File 'lib/believe/models/character_create_params.rb', line 74

optional :salary_gbp, union: -> { ::Believe::CharacterCreateParams::SalaryGbp }, nil?: true

#signature_quotesArray<String>?

Memorable quotes from this character

Returns:

  • (Array<String>, nil)


80
# File 'lib/believe/models/character_create_params.rb', line 80

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

#team_idString?

ID of the team they belong to

Returns:

  • (String, nil)


86
# File 'lib/believe/models/character_create_params.rb', line 86

optional :team_id, String, nil?: true