Class: Ecoportal::API::GraphQL::Error::LocationsError

Inherits:
Logic::BaseModel show all
Defined in:
lib/ecoportal/api/graphql/error/locations_error.rb,
lib/ecoportal/api/graphql/error/locations_error/fetch_nested.rb

Defined Under Namespace

Modules: FetchNested

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

#as_input

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

#as_update, #dirty?

Instance Method Details

#any?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/ecoportal/api/graphql/error/locations_error.rb', line 16

def any?
  !empty?
end

#empty?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/ecoportal/api/graphql/error/locations_error.rb', line 12

def empty?
  conflictingIds.empty? && validationErrors.empty?
end