Class: Etna::Clients::Magma::UpdateModelRequest
- Inherits:
-
Struct
- Object
- Struct
- Etna::Clients::Magma::UpdateModelRequest
- Includes:
- JsonSerializableStruct
- Defined in:
- lib/etna/clients/magma/models.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
Instance Method Summary collapse
- #add_action(action) ⇒ Object
-
#initialize(**params) ⇒ UpdateModelRequest
constructor
A new instance of UpdateModelRequest.
Methods included from JsonSerializableStruct
Constructor Details
#initialize(**params) ⇒ UpdateModelRequest
Returns a new instance of UpdateModelRequest.
51 52 53 |
# File 'lib/etna/clients/magma/models.rb', line 51 def initialize(**params) super({actions: []}.update(params)) end |
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions
48 49 50 |
# File 'lib/etna/clients/magma/models.rb', line 48 def actions @actions end |
#project_name ⇒ Object
Returns the value of attribute project_name
48 49 50 |
# File 'lib/etna/clients/magma/models.rb', line 48 def project_name @project_name end |
Instance Method Details
#add_action(action) ⇒ Object
55 56 57 |
# File 'lib/etna/clients/magma/models.rb', line 55 def add_action(action) actions << action end |