Class: Ecoportal::API::GraphQL::Payload::LocationStructure::Draft::DropBadCommands
- Inherits:
-
AddCommands
- Object
- Common::Content::DoubleModel
- Common::GraphQL::Model
- Logic::BaseModel
- Logic::Payload
- Create
- AddCommands
- Ecoportal::API::GraphQL::Payload::LocationStructure::Draft::DropBadCommands
- Includes:
- Error::LocationsError::FetchNested
- Defined in:
- lib/ecoportal/api/graphql/payload/location_structure/draft/drop_bad_commands.rb
Constant Summary
Constants included from Common::GraphQL::Model::Diffable
Common::GraphQL::Model::Diffable::DIFF_CLASS
Instance Method Summary collapse
Methods included from Error::LocationsError::FetchNested
#conflictingIds, #conflictingIds?, #locations_error?, #locations_error_doc, #validationErrors, #validationErrors?
Methods inherited from Logic::Payload
Methods included from Common::GraphQL::Model::AsInput
Methods included from Common::GraphQL::Model::Diffable
Instance Method Details
#error? ⇒ Boolean
15 16 17 18 19 |
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/drop_bad_commands.rb', line 15 def error? super || !ok? || locations_error? end |
#error_doc ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/drop_bad_commands.rb', line 21 def error_doc err_doc = super return err_doc if err_doc if locations_error? { locationsError: locations_error_doc } elsif !ok? { ok: false } end end |