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.



52
53
54
# File 'lib/etna/clients/magma/models.rb', line 52

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



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

def actions
  @actions
end

#project_nameObject

Returns the value of attribute project_name

Returns:

  • (Object)

    the current value of project_name



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

def project_name
  @project_name
end

Instance Method Details

#add_action(action) ⇒ Object



56
57
58
# File 'lib/etna/clients/magma/models.rb', line 56

def add_action(action)
  actions << action
end