Class: Believe::Models::QuoteUpdateParams

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

Overview

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(quote_id:, character_id: nil, context: nil, episode_id: nil, is_funny: nil, is_inspirational: nil, moment_type: nil, popularity_score: nil, secondary_themes: nil, text: nil, theme: nil, times_shared: nil, request_options: {}) ⇒ Object

Parameters:

  • quote_id (String)
  • character_id (String, nil) (defaults to: nil)
  • context (String, nil) (defaults to: nil)
  • episode_id (String, nil) (defaults to: nil)
  • is_funny (Boolean, nil) (defaults to: nil)
  • is_inspirational (Boolean, nil) (defaults to: nil)
  • moment_type (Symbol, ::Believe::Models::QuoteMoment, nil) (defaults to: nil)

    Types of moments when quotes occur.

  • popularity_score (Float, nil) (defaults to: nil)
  • secondary_themes (Array<Symbol, ::Believe::Models::QuoteTheme>, nil) (defaults to: nil)
  • text (String, nil) (defaults to: nil)
  • theme (Symbol, ::Believe::Models::QuoteTheme, nil) (defaults to: nil)

    Themes that quotes can be categorized under.

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


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

Instance Attribute Details

#character_idString?

Returns:

  • (String, nil)


18
# File 'lib/believe/models/quote_update_params.rb', line 18

optional :character_id, String, nil?: true

#contextString?

Returns:

  • (String, nil)


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

optional :context, String, nil?: true

#episode_idString?

Returns:

  • (String, nil)


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

optional :episode_id, String, nil?: true

#is_funnyBoolean?

Returns:

  • (Boolean, nil)


33
# File 'lib/believe/models/quote_update_params.rb', line 33

optional :is_funny, ::Believe::Internal::Type::Boolean, nil?: true

#is_inspirationalBoolean?

Returns:

  • (Boolean, nil)


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

optional :is_inspirational, ::Believe::Internal::Type::Boolean, nil?: true

#moment_typeSymbol, ...

Types of moments when quotes occur.

Returns:



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

optional :moment_type, enum: -> { ::Believe::QuoteMoment }, nil?: true

#popularity_scoreFloat?

Returns:

  • (Float, nil)


49
# File 'lib/believe/models/quote_update_params.rb', line 49

optional :popularity_score, Float, nil?: true

#quote_idString

Returns:

  • (String)


13
# File 'lib/believe/models/quote_update_params.rb', line 13

required :quote_id, String

#secondary_themesArray<Symbol, ::Believe::Models::QuoteTheme>?

Returns:



54
55
56
# File 'lib/believe/models/quote_update_params.rb', line 54

optional :secondary_themes,
-> { ::Believe::Internal::Type::ArrayOf[enum: ::Believe::QuoteTheme] },
nil?: true

#textString?

Returns:

  • (String, nil)


61
# File 'lib/believe/models/quote_update_params.rb', line 61

optional :text, String, nil?: true

#themeSymbol, ...

Themes that quotes can be categorized under.

Returns:



67
# File 'lib/believe/models/quote_update_params.rb', line 67

optional :theme, enum: -> { ::Believe::QuoteTheme }, nil?: true

#times_sharedInteger?

Returns:

  • (Integer, nil)


72
# File 'lib/believe/models/quote_update_params.rb', line 72

optional :times_shared, Integer, nil?: true