Class: Believe::Models::QuoteCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Believe::Models::QuoteCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/believe/models/quote_create_params.rb
Overview
Instance Attribute Summary collapse
-
#character_id ⇒ String
ID of the character who said it.
-
#context ⇒ String
Context in which the quote was said.
-
#episode_id ⇒ String?
Episode where the quote appears.
-
#is_funny ⇒ Boolean?
Whether this quote is humorous.
-
#is_inspirational ⇒ Boolean?
Whether this quote is inspirational.
-
#moment_type ⇒ Symbol, ::Believe::Models::QuoteMoment
Type of moment when the quote was said.
-
#popularity_score ⇒ Float?
Popularity/virality score (0-100).
-
#secondary_themes ⇒ Array<Symbol, ::Believe::Models::QuoteTheme>?
Additional themes.
-
#text ⇒ String
The quote text.
-
#theme ⇒ Symbol, ::Believe::Models::QuoteTheme
Primary theme of the quote.
-
#times_shared ⇒ Integer?
Number of times shared on social media.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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
|
|
# File 'lib/believe/models/quote_create_params.rb', line 76
|
Instance Attribute Details
#character_id ⇒ String
ID of the character who said it
14 |
# File 'lib/believe/models/quote_create_params.rb', line 14 required :character_id, String |
#context ⇒ String
Context in which the quote was said
20 |
# File 'lib/believe/models/quote_create_params.rb', line 20 required :context, String |
#episode_id ⇒ String?
Episode where the quote appears
44 |
# File 'lib/believe/models/quote_create_params.rb', line 44 optional :episode_id, String, nil?: true |
#is_funny ⇒ Boolean?
Whether this quote is humorous
50 |
# File 'lib/believe/models/quote_create_params.rb', line 50 optional :is_funny, ::Believe::Internal::Type::Boolean |
#is_inspirational ⇒ Boolean?
Whether this quote is inspirational
56 |
# File 'lib/believe/models/quote_create_params.rb', line 56 optional :is_inspirational, ::Believe::Internal::Type::Boolean |
#moment_type ⇒ Symbol, ::Believe::Models::QuoteMoment
Type of moment when the quote was said
26 |
# File 'lib/believe/models/quote_create_params.rb', line 26 required :moment_type, enum: -> { ::Believe::QuoteMoment } |
#popularity_score ⇒ Float?
Popularity/virality score (0-100)
62 |
# File 'lib/believe/models/quote_create_params.rb', line 62 optional :popularity_score, Float, nil?: true |
#secondary_themes ⇒ Array<Symbol, ::Believe::Models::QuoteTheme>?
Additional themes
68 |
# File 'lib/believe/models/quote_create_params.rb', line 68 optional :secondary_themes, -> { ::Believe::Internal::Type::ArrayOf[enum: ::Believe::QuoteTheme] } |
#text ⇒ String
The quote text
32 |
# File 'lib/believe/models/quote_create_params.rb', line 32 required :text, String |
#theme ⇒ Symbol, ::Believe::Models::QuoteTheme
Primary theme of the quote
38 |
# File 'lib/believe/models/quote_create_params.rb', line 38 required :theme, enum: -> { ::Believe::QuoteTheme } |
#times_shared ⇒ Integer?
Number of times shared on social media
74 |
# File 'lib/believe/models/quote_create_params.rb', line 74 optional :times_shared, Integer, nil?: true |