Module: Transporter::Service::Validations
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_errors ⇒ Object
8
9
10
|
# File 'lib/transporter/service/validations.rb', line 8
def config_errors
self.class.validator.errors
end
|
#valid_config?(config) ⇒ Boolean
12
13
14
|
# File 'lib/transporter/service/validations.rb', line 12
def valid_config?(config)
self.class.validator.valid?(config)
end
|