Class: Ecoportal::API::GraphQL::Payload::LocationStructure::Draft::DropBadCommands
Constant Summary
Common::GraphQL::Model::Diffable::DIFF_CLASS
Instance Method Summary
collapse
#loc_err_conflicting_ids, #loc_err_conflicting_ids?, #locations_error?, #locations_error_doc, #validationErrors, #validationErrors?
#success?
#as_input
#as_update, #dirty?
Instance Method Details
#error? ⇒ Boolean
17
18
19
20
21
|
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/drop_bad_commands.rb', line 17
def error?
super ||
locations_error? ||
!ok?
end
|
#error_doc ⇒ Object
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/drop_bad_commands.rb', line 23
def error_doc
err_doc = super
return err_doc if err_doc
if locations_error?
{
locationsError: locations_error_doc
}
elsif !ok?
{
ok: ok
}
end
end
|
#ok? ⇒ Boolean
13
14
15
|
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/drop_bad_commands.rb', line 13
def ok?
ok != false
end
|