Class: Ecoportal::API::GraphQL::Input::LocationStructure::Draft::AddCommands
- Inherits:
-
Logic::Input
- Object
- Common::Content::DoubleModel
- Common::GraphQL::Model
- Logic::BaseModel
- Logic::Input
- Ecoportal::API::GraphQL::Input::LocationStructure::Draft::AddCommands
- Defined in:
- lib/ecoportal/api/graphql/input/location_structure/draft/add_commands.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
Methods included from Common::GraphQL::Model::Diffable
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 |