Sha256: 056a77a1f462b3e1fcb703b59a7355fb6bff29caaf30a03a0ce9d154f4b0fc03

Contents?: true

Size: 479 Bytes

Versions: 12

Compression:

Stored size: 479 Bytes

Contents

module Ecoportal
  module API
    class GraphQL
      module Base
        class ValidationErrors < Ecoportal::API::GraphQL::Base::Model
          include Enumerable

          passthrough :details
          passarray :fullMessages

          def empty?
            count < 1
          end

          def each(&block)
            return to_enum(:each) unless block
            fullMessages.each(&block)
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.1.11 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.10 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.9 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.8 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.7 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.6 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.5 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.4 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.3 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.2 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.1 lib/ecoportal/api/graphql/base/validation_errors.rb
ecoportal-api-graphql-0.1.0 lib/ecoportal/api/graphql/base/validation_errors.rb