Module: Believe::Models::CharacterUpdateParams::SalaryGbp

Extended by:
Internal::Type::Union
Defined in:
lib/believe/models/character_update_params.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(Float, String)

Returns:

  • (Array(Float, String))


# File 'lib/believe/models/character_update_params.rb', line 120

Instance Method Details

#initialize(character_id:, background: nil, date_of_birth: nil, email: nil, emotional_stats: nil, growth_arcs: nil, height_meters: nil, name: nil, personality_traits: nil, profile_image_url: nil, role: nil, salary_gbp: nil, signature_quotes: nil, team_id: nil, request_options: {}) ⇒ Object

Parameters:

  • character_id (String)
  • background (String, nil) (defaults to: nil)
  • date_of_birth (Date, nil) (defaults to: nil)
  • email (String, nil) (defaults to: nil)
  • emotional_stats (::Believe::Models::EmotionalStats, nil) (defaults to: nil)

    Emotional intelligence statistics for a character.

  • growth_arcs (Array<::Believe::Models::GrowthArc>, nil) (defaults to: nil)
  • height_meters (Float, nil) (defaults to: nil)
  • name (String, nil) (defaults to: nil)
  • personality_traits (Array<String>, nil) (defaults to: nil)
  • profile_image_url (String, nil) (defaults to: nil)
  • role (Symbol, ::Believe::Models::CharacterRole, nil) (defaults to: nil)

    Roles characters can have.

  • salary_gbp (Float, String, nil) (defaults to: nil)
  • signature_quotes (Array<String>, nil) (defaults to: nil)
  • team_id (String, nil) (defaults to: nil)
  • request_options (::Believe::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


113
114
115
116
117
118
119
120
121
122
# File 'lib/believe/models/character_update_params.rb', line 113

module SalaryGbp
  extend ::Believe::Internal::Type::Union

  variant Float

  variant String

  # @!method self.variants
  #   @return [Array(Float, String)]
end