Class: Believe::Models::QuoteCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/believe/models/quote_create_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(character_id:, context:, moment_type:, text:, theme:, episode_id: nil, is_funny: nil, is_inspirational: nil, popularity_score: nil, secondary_themes: nil, times_shared: nil, request_options: {}) ⇒ Object

Parameters:

  • character_id (String)

    ID of the character who said it

  • context (String)

    Context in which the quote was said

  • moment_type (Symbol, ::Believe::Models::QuoteMoment)

    Type of moment when the quote was said

  • text (String)

    The quote text

  • theme (Symbol, ::Believe::Models::QuoteTheme)

    Primary theme of the quote

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

    Episode where the quote appears

  • is_funny (Boolean) (defaults to: nil)

    Whether this quote is humorous

  • is_inspirational (Boolean) (defaults to: nil)

    Whether this quote is inspirational

  • popularity_score (Float, nil) (defaults to: nil)

    Popularity/virality score (0-100)

  • secondary_themes (Array<Symbol, ::Believe::Models::QuoteTheme>) (defaults to: nil)

    Additional themes

  • times_shared (Integer, nil) (defaults to: nil)

    Number of times shared on social media

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


# File 'lib/believe/models/quote_create_params.rb', line 76

Instance Attribute Details

#character_idString

ID of the character who said it

Returns:

  • (String)


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

required :character_id, String

#contextString

Context in which the quote was said

Returns:

  • (String)


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

required :context, String

#episode_idString?

Episode where the quote appears

Returns:

  • (String, nil)


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

optional :episode_id, String, nil?: true

#is_funnyBoolean?

Whether this quote is humorous

Returns:

  • (Boolean, nil)


50
# File 'lib/believe/models/quote_create_params.rb', line 50

optional :is_funny, ::Believe::Internal::Type::Boolean

#is_inspirationalBoolean?

Whether this quote is inspirational

Returns:

  • (Boolean, nil)


56
# File 'lib/believe/models/quote_create_params.rb', line 56

optional :is_inspirational, ::Believe::Internal::Type::Boolean

#moment_typeSymbol, ::Believe::Models::QuoteMoment

Type of moment when the quote was said

Returns:



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

required :moment_type, enum: -> { ::Believe::QuoteMoment }

#popularity_scoreFloat?

Popularity/virality score (0-100)

Returns:

  • (Float, nil)


62
# File 'lib/believe/models/quote_create_params.rb', line 62

optional :popularity_score, Float, nil?: true

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

Additional themes

Returns:



68
# File 'lib/believe/models/quote_create_params.rb', line 68

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

#textString

The quote text

Returns:

  • (String)


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

required :text, String

#themeSymbol, ::Believe::Models::QuoteTheme

Primary theme of the quote

Returns:



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

required :theme, enum: -> { ::Believe::QuoteTheme }

#times_sharedInteger?

Number of times shared on social media

Returns:

  • (Integer, nil)


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

optional :times_shared, Integer, nil?: true