Class: Ecoportal::API::GraphQL::Input::LocationStructure::Draft::AddCommands
- Inherits:
-
Logic::Input
- Object
- Logic::BaseModel
- Logic::Input
- Ecoportal::API::GraphQL::Input::LocationStructure::Draft::AddCommands
- Defined in:
- lib/ecoportal/api/graphql/input/location_structure/draft/add_commands.rb
Instance Method Summary collapse
Methods inherited from Logic::Input
Instance Method Details
#add(type, **kargs) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/ecoportal/api/graphql/input/location_structure/draft/add_commands.rb', line 13 def add(type, **kargs) if (command = new_command(type)) command.set_values(**kargs) unless kargs.empty? yield(command) if block_given? end command end |