Class: Etna::Clients::Magma::UpdateModelRequest

Inherits:
Struct
  • Object
show all
Includes:
JsonSerializableStruct
Defined in:
lib/etna/clients/magma/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JsonSerializableStruct

#as_json, included, #to_json

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

#actionsObject

Returns the value of attribute actions

Returns:

  • (Object)

    the current value of actions



48
49
50
# File 'lib/etna/clients/magma/models.rb', line 48

def actions
  @actions
end

#project_nameObject

Returns the value of attribute project_name

Returns:

  • (Object)

    the current value of 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