Class: Cadenya::Types::SwapModelOnVariationsRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::SwapModelOnVariationsRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#model_swaps ⇒ Object
readonly
Returns the value of attribute model_swaps.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, model_swaps: nil) ⇒ SwapModelOnVariationsRequest
constructor
A new instance of SwapModelOnVariationsRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, model_swaps: nil) ⇒ SwapModelOnVariationsRequest
Returns a new instance of SwapModelOnVariationsRequest.
5374 5375 5376 5377 |
# File 'lib/cadenya/types.rb', line 5374 def initialize(workspace_id: nil, model_swaps: nil) @workspace_id = workspace_id @model_swaps = model_swaps end |
Instance Attribute Details
#model_swaps ⇒ Object (readonly)
Returns the value of attribute model_swaps.
5372 5373 5374 |
# File 'lib/cadenya/types.rb', line 5372 def model_swaps @model_swaps end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
5372 5373 5374 |
# File 'lib/cadenya/types.rb', line 5372 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
5379 5380 5381 5382 5383 5384 |
# File 'lib/cadenya/types.rb', line 5379 def self.from_json(data) new( workspace_id: data["workspaceId"], model_swaps: data["modelSwaps"].nil? ? nil : (data["modelSwaps"]).map { |item| Types::SwapModelOnVariationsRequest_ModelSwap.from_json(item) }, ) end |