Class: Believe::Models::Character
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Believe::Models::Character
- Defined in:
- lib/believe/models/character.rb
Overview
Instance Attribute Summary collapse
-
#background ⇒ String
Character background and history.
-
#date_of_birth ⇒ Date?
Character’s date of birth.
-
#email ⇒ String?
Character’s email address.
-
#emotional_stats ⇒ ::Believe::Models::EmotionalStats
Emotional intelligence stats.
-
#growth_arcs ⇒ Array<::Believe::Models::GrowthArc>?
Character development across seasons.
-
#height_meters ⇒ Float?
Height in meters.
-
#id ⇒ String
Unique identifier.
-
#name ⇒ String
Character’s full name.
-
#personality_traits ⇒ Array<String>
Key personality traits.
-
#profile_image_url ⇒ String?
URL to character’s profile image.
-
#role ⇒ Symbol, ::Believe::Models::CharacterRole
Character’s role.
-
#salary_gbp ⇒ String?
Annual salary in GBP.
-
#signature_quotes ⇒ Array<String>?
Memorable quotes from this character.
-
#team_id ⇒ String?
ID of the team they belong to.
Instance Method Summary collapse
-
#initialize(id:, 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) ⇒ Object
constructor
Full character model with ID.
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:, 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) ⇒ Object
Full character model with ID.
|
|
# File 'lib/believe/models/character.rb', line 91
|
Instance Attribute Details
#background ⇒ String
Character background and history
17 |
# File 'lib/believe/models/character.rb', line 17 required :background, String |
#date_of_birth ⇒ Date?
Character’s date of birth
47 |
# File 'lib/believe/models/character.rb', line 47 optional :date_of_birth, Date, nil?: true |
#email ⇒ String?
Character’s email address
53 |
# File 'lib/believe/models/character.rb', line 53 optional :email, String, nil?: true |
#emotional_stats ⇒ ::Believe::Models::EmotionalStats
Emotional intelligence stats
23 |
# File 'lib/believe/models/character.rb', line 23 required :emotional_stats, -> { ::Believe::EmotionalStats } |
#growth_arcs ⇒ Array<::Believe::Models::GrowthArc>?
Character development across seasons
59 |
# File 'lib/believe/models/character.rb', line 59 optional :growth_arcs, -> { ::Believe::Internal::Type::ArrayOf[::Believe::GrowthArc] } |
#height_meters ⇒ Float?
Height in meters
65 |
# File 'lib/believe/models/character.rb', line 65 optional :height_meters, Float, nil?: true |
#id ⇒ String
Unique identifier
11 |
# File 'lib/believe/models/character.rb', line 11 required :id, String |
#name ⇒ String
Character’s full name
29 |
# File 'lib/believe/models/character.rb', line 29 required :name, String |
#personality_traits ⇒ Array<String>
Key personality traits
35 |
# File 'lib/believe/models/character.rb', line 35 required :personality_traits, ::Believe::Internal::Type::ArrayOf[String] |
#profile_image_url ⇒ String?
URL to character’s profile image
71 |
# File 'lib/believe/models/character.rb', line 71 optional :profile_image_url, String, nil?: true |
#role ⇒ Symbol, ::Believe::Models::CharacterRole
Character’s role
41 |
# File 'lib/believe/models/character.rb', line 41 required :role, enum: -> { ::Believe::CharacterRole } |
#salary_gbp ⇒ String?
Annual salary in GBP
77 |
# File 'lib/believe/models/character.rb', line 77 optional :salary_gbp, String, nil?: true |
#signature_quotes ⇒ Array<String>?
Memorable quotes from this character
83 |
# File 'lib/believe/models/character.rb', line 83 optional :signature_quotes, ::Believe::Internal::Type::ArrayOf[String] |
#team_id ⇒ String?
ID of the team they belong to
89 |
# File 'lib/believe/models/character.rb', line 89 optional :team_id, String, nil?: true |