Class: Believe::Models::QuoteGetRandomParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/believe/models/quote_get_random_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: nil, inspirational: nil, theme: nil, request_options: {}) ⇒ Object

Parameters:

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

    Filter by character

  • inspirational (Boolean, nil) (defaults to: nil)

    Filter inspirational quotes

  • theme (Symbol, ::Believe::Models::QuoteTheme, nil) (defaults to: nil)

    Filter by theme

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


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

Instance Attribute Details

#character_idString?

Filter by character

Returns:

  • (String, nil)


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

optional :character_id, String, nil?: true

#inspirationalBoolean?

Filter inspirational quotes

Returns:

  • (Boolean, nil)


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

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

#themeSymbol, ...

Filter by theme

Returns:



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

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