Class: Ecoportal::API::GraphQL::Error::ValidationErrors

Inherits:
Base::Model show all
Includes:
Enumerable
Defined in:
lib/ecoportal/api/graphql/error/validation_errors.rb

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

#each(&block) ⇒ Object



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

def each(&block)
  return to_enum(:each) unless block

  fullMessages.each(&block)
end

#empty?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ecoportal/api/graphql/error/validation_errors.rb', line 11

def empty?
  count < 1
end