Class: Ecoportal::API::GraphQL::Payload::LocationStructure::Draft::Delete

Inherits:
Logic::Payload show all
Defined in:
lib/ecoportal/api/graphql/payload/location_structure/draft/delete.rb

Constant Summary

Constants included from Common::GraphQL::Model::Diffable

Common::GraphQL::Model::Diffable::DIFF_CLASS

Instance Method Summary collapse

Methods inherited from Logic::Payload

#success?

Methods included from Common::GraphQL::Model::AsInput

#as_input

Methods included from Common::GraphQL::Model::Diffable

#as_update, #dirty?

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/delete.rb', line 11

def error?
  super || !ok?
end

#error_docObject



15
16
17
18
19
20
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/delete.rb', line 15

def error_doc
  err_doc = super
  return err_doc if err_doc

  { ok: false } unless ok?
end