Class: Believe::Models::BelieveSubmitParams

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

Overview

Defined Under Namespace

Modules: SituationType

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(situation:, situation_type:, context: nil, intensity: nil, request_options: {}) ⇒ Object

Parameters:

  • situation (String)

    Describe your situation

  • situation_type (Symbol, ::Believe::Models::BelieveSubmitParams::SituationType)

    Type of situation

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

    Additional context

  • intensity (Integer) (defaults to: nil)

    How intense is the response needed (1=gentle, 10=full Ted)

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


# File 'lib/believe/models/believe_submit_params.rb', line 34

Instance Attribute Details

#contextString?

Additional context

Returns:

  • (String, nil)


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

optional :context, String, nil?: true

#intensityInteger?

How intense is the response needed (1=gentle, 10=full Ted)

Returns:

  • (Integer, nil)


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

optional :intensity, Integer

#situationString

Describe your situation

Returns:

  • (String)


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

required :situation, String

#situation_typeSymbol, ::Believe::Models::BelieveSubmitParams::SituationType

Type of situation



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

required :situation_type, enum: -> { ::Believe::BelieveSubmitParams::SituationType }