Class: Ecoportal::API::GraphQL::Interface::LocationStructure::Command
- Inherits:
-
Logic::BaseModel
- Object
- Common::Content::DoubleModel
- Common::GraphQL::Model
- Logic::BaseModel
- Ecoportal::API::GraphQL::Interface::LocationStructure::Command
- Defined in:
- lib/ecoportal/api/graphql/interface/location_structure/command.rb
Direct Known Subclasses
Ecoportal::API::GraphQL::Input::LocationStructure::ArchiveCommand, Ecoportal::API::GraphQL::Input::LocationStructure::DeleteCommand, Ecoportal::API::GraphQL::Input::LocationStructure::MoveCommand, Ecoportal::API::GraphQL::Input::LocationStructure::ReorderCommand, Ecoportal::API::GraphQL::Input::LocationStructure::UnarchiveCommand, Ecoportal::API::GraphQL::Input::LocationStructure::UpdateCommand
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
#keys ⇒ Object
14 15 16 |
# File 'lib/ecoportal/api/graphql/interface/location_structure/command.rb', line 14 def keys (doc || {}).keys end |
#set_values(**kargs) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/ecoportal/api/graphql/interface/location_structure/command.rb', line 18 def set_values(**kargs) kargs.each do |key, value| send(key, value) if respond_to?(key, true) end self end |
#target_ids ⇒ Object
10 11 12 |
# File 'lib/ecoportal/api/graphql/interface/location_structure/command.rb', line 10 def target_ids (doc || {}).values_at(:nodeId, :newId, :id) end |