Class: Cadenya::Models::ModelSwapParams::ModelSwap
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::ModelSwapParams::ModelSwap
- Defined in:
- lib/cadenya/models/model_swap_params.rb
Instance Attribute Summary collapse
-
#current_model_id ⇒ String?
The model variations are currently on.
-
#next_model_id ⇒ String?
The model to move variations to.
Instance Method Summary collapse
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(current_model_id: nil, next_model_id: nil) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/cadenya/models/model_swap_params.rb', line 30 class ModelSwap < Cadenya::Internal::Type::BaseModel # @!attribute current_model_id # The model variations are currently on. Accepts an id or "external_id:" slug. # # @return [String, nil] optional :current_model_id, String, api_name: :currentModelId # @!attribute next_model_id # The model to move variations to. Accepts an id or "external_id:" slug. # # @return [String, nil] optional :next_model_id, String, api_name: :nextModelId # @!method initialize(current_model_id: nil, next_model_id: nil) # @param current_model_id [String] The model variations are currently on. Accepts an id or "external_id:" slug. # # @param next_model_id [String] The model to move variations to. Accepts an id or "external_id:" slug. end |
Instance Attribute Details
#current_model_id ⇒ String?
The model variations are currently on. Accepts an id or “external_id:” slug.
35 |
# File 'lib/cadenya/models/model_swap_params.rb', line 35 optional :current_model_id, String, api_name: :currentModelId |
#next_model_id ⇒ String?
The model to move variations to. Accepts an id or “external_id:” slug.
41 |
# File 'lib/cadenya/models/model_swap_params.rb', line 41 optional :next_model_id, String, api_name: :nextModelId |