Class: Ecoportal::API::GraphQL::Input::LocationStructure::CommandInterface

Inherits:
Base::Model show all
Defined in:
lib/ecoportal/api/graphql/input/location_structure/command_interface.rb

Constant Summary

Constants included from Common::GraphQL::Model::Diffable

Common::GraphQL::Model::Diffable::DIFF_CLASS

Instance Method Summary collapse

Methods included from Common::GraphQL::Model::AsInput

#as_input

Methods included from Common::GraphQL::Model::Diffable

#as_update, #dirty?

Constructor Details

#initialize(*args, **kargs, &block) ⇒ CommandInterface

Returns a new instance of CommandInterface.



10
11
12
13
# File 'lib/ecoportal/api/graphql/input/location_structure/command_interface.rb', line 10

def initialize(*args, **kargs, &block)
  self.id = self.class.new_uuid
  super
end

Instance Method Details

#set_values(**kargs) ⇒ Object



15
16
17
18
19
20
# File 'lib/ecoportal/api/graphql/input/location_structure/command_interface.rb', line 15

def set_values(**kargs)
  kargs.each do |key, value|
    send(key, value) if respond_to?(key, true)
  end
  self
end