Class: Believe::Models::PressSimulateResponse

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

Overview

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(actual_wisdom:, follow_up_dodge:, reporter_reaction:, response:, deflection_humor: nil) ⇒ Object

Ted’s press conference response.

Parameters:

  • actual_wisdom (String)

    The actual wisdom beneath the humor

  • follow_up_dodge (String)

    How Ted would dodge a follow-up

  • reporter_reaction (String)

    How reporters would react

  • response (String)

    Ted’s press conference answer

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

    Humorous deflection if appropriate



# File 'lib/believe/models/press_simulate_response.rb', line 37

Instance Attribute Details

#actual_wisdomString

The actual wisdom beneath the humor

Returns:

  • (String)


11
# File 'lib/believe/models/press_simulate_response.rb', line 11

required :actual_wisdom, String

#deflection_humorString?

Humorous deflection if appropriate

Returns:

  • (String, nil)


35
# File 'lib/believe/models/press_simulate_response.rb', line 35

optional :deflection_humor, String, nil?: true

#follow_up_dodgeString

How Ted would dodge a follow-up

Returns:

  • (String)


17
# File 'lib/believe/models/press_simulate_response.rb', line 17

required :follow_up_dodge, String

#reporter_reactionString

How reporters would react

Returns:

  • (String)


23
# File 'lib/believe/models/press_simulate_response.rb', line 23

required :reporter_reaction, String

#responseString

Ted’s press conference answer

Returns:

  • (String)


29
# File 'lib/believe/models/press_simulate_response.rb', line 29

required :response, String