Class: Cadenya::Types::SwapModelOnVariationsRequest_ModelSwap
- Inherits:
-
Object
- Object
- Cadenya::Types::SwapModelOnVariationsRequest_ModelSwap
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#current_model_id ⇒ Object
readonly
Returns the value of attribute current_model_id.
-
#disable_current_after_swap ⇒ Object
readonly
Returns the value of attribute disable_current_after_swap.
-
#next_model_id ⇒ Object
readonly
Returns the value of attribute next_model_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(current_model_id: nil, next_model_id: nil, disable_current_after_swap: nil) ⇒ SwapModelOnVariationsRequest_ModelSwap
constructor
A new instance of SwapModelOnVariationsRequest_ModelSwap.
- #to_h ⇒ Object
Constructor Details
#initialize(current_model_id: nil, next_model_id: nil, disable_current_after_swap: nil) ⇒ SwapModelOnVariationsRequest_ModelSwap
Returns a new instance of SwapModelOnVariationsRequest_ModelSwap.
5397 5398 5399 5400 5401 |
# File 'lib/cadenya/types.rb', line 5397 def initialize(current_model_id: nil, next_model_id: nil, disable_current_after_swap: nil) @current_model_id = current_model_id @next_model_id = next_model_id @disable_current_after_swap = disable_current_after_swap end |
Instance Attribute Details
#current_model_id ⇒ Object (readonly)
Returns the value of attribute current_model_id.
5395 5396 5397 |
# File 'lib/cadenya/types.rb', line 5395 def current_model_id @current_model_id end |
#disable_current_after_swap ⇒ Object (readonly)
Returns the value of attribute disable_current_after_swap.
5395 5396 5397 |
# File 'lib/cadenya/types.rb', line 5395 def disable_current_after_swap @disable_current_after_swap end |
#next_model_id ⇒ Object (readonly)
Returns the value of attribute next_model_id.
5395 5396 5397 |
# File 'lib/cadenya/types.rb', line 5395 def next_model_id @next_model_id end |
Class Method Details
.from_json(data) ⇒ Object
5403 5404 5405 5406 5407 5408 5409 |
# File 'lib/cadenya/types.rb', line 5403 def self.from_json(data) new( current_model_id: data["currentModelId"], next_model_id: data["nextModelId"], disable_current_after_swap: data["disableCurrentAfterSwap"], ) end |