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

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

Instance Method Summary collapse

Methods inherited from Base::Model

as_input, #as_input, #as_update

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