Sha256: da064987a0e46c40b640716470e51dfa68b2cf503b3050265134d85a30e87e78
Contents?: true
Size: 898 Bytes
Versions: 9
Compression:
Stored size: 898 Bytes
Contents
require_relative 'supported_operations_validator' module GraphqlDevise module MountMethod module OptionValidators class ProvidedOperationsValidator def initialize(options:, supported_operations:) @options = options @supported_operations = supported_operations end def validate! supported_keys = @supported_operations.keys [ SupportedOperationsValidator.new(provided_operations: @options.skip, key: :skip, supported_operations: supported_keys), SupportedOperationsValidator.new(provided_operations: @options.only, key: :only, supported_operations: supported_keys), SupportedOperationsValidator.new(provided_operations: @options.operations.keys, key: :operations, supported_operations: supported_keys) ].each(&:validate!) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems