Class: Ecoportal::API::GraphQL::Payload::LocationStructure::Draft::Create
- Inherits:
-
Logic::Payload
show all
- Defined in:
- lib/ecoportal/api/graphql/payload/location_structure/draft/create.rb
Constant Summary
Common::GraphQL::Model::Diffable::DIFF_CLASS
Instance Method Summary
collapse
#success?
#as_input
#as_update, #dirty?
Instance Method Details
#error? ⇒ Boolean
13
14
15
16
|
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/create.rb', line 13
def error?
super ||
draft.error?
end
|
#error_doc ⇒ Object
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/create.rb', line 18
def error_doc
err_doc = super
return err_doc if err_doc
if draft.error? && draft.respond_to?(:error_doc)
{
draft: draft.error_doc
}
end
end
|