Module: Transporter::Service::Validations

Included in:
Transporter::Service
Defined in:
lib/transporter/service/validations.rb

Defined Under Namespace

Modules: ClassMethods Classes: Validator

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(service) ⇒ Object



4
5
6
# File 'lib/transporter/service/validations.rb', line 4

def self.included(service)
  service.extend ClassMethods
end

Instance Method Details

#config_errorsObject



8
9
10
# File 'lib/transporter/service/validations.rb', line 8

def config_errors
  self.class.validator.errors
end

#valid_config?(config) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/transporter/service/validations.rb', line 12

def valid_config?(config)
  self.class.validator.valid?(config)
end