Class: Ecoportal::API::GraphQL::Input::LocationStructure::CommandInterface
- Inherits:
-
Base::Model
- Object
- Common::Content::DoubleModel
- Base::Model
- Ecoportal::API::GraphQL::Input::LocationStructure::CommandInterface
- Defined in:
- lib/ecoportal/api/graphql/input/location_structure/command_interface.rb
Direct Known Subclasses
ArchiveCommand, DeleteCommand, MoveCommand, ReorderCommand, UnarchiveCommand, UpdateCommand
Instance Method Summary collapse
-
#initialize(*args, **kargs, &block) ⇒ CommandInterface
constructor
A new instance of CommandInterface.
- #set_values(**kargs) ⇒ Object
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 |