Class: Believe::Models::TurningPoint

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

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(description:, emotional_impact:, minute:, character_involved: nil) ⇒ Object

A pivotal moment in a match.

Parameters:

  • description (String)

    What happened

  • emotional_impact (String)

    How this affected the team emotionally

  • minute (Integer)

    Minute of the match

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

    Character ID who was central to this moment



# File 'lib/believe/models/turning_point.rb', line 30

Instance Attribute Details

#character_involvedString?

Character ID who was central to this moment

Returns:

  • (String, nil)


28
# File 'lib/believe/models/turning_point.rb', line 28

optional :character_involved, String, nil?: true

#descriptionString

What happened

Returns:

  • (String)


10
# File 'lib/believe/models/turning_point.rb', line 10

required :description, String

#emotional_impactString

How this affected the team emotionally

Returns:

  • (String)


16
# File 'lib/believe/models/turning_point.rb', line 16

required :emotional_impact, String

#minuteInteger

Minute of the match

Returns:

  • (Integer)


22
# File 'lib/believe/models/turning_point.rb', line 22

required :minute, Integer