class DTOSchema::Validators::ValidatorReference
Public Class Methods
new(schema, ref)
click to toggle source
# File lib/dto_schema/validators.rb, line 59 def initialize (schema, ref) @schema, @ref = schema, ref end
Public Instance Methods
resolve()
click to toggle source
# File lib/dto_schema/validators.rb, line 75 def resolve @schema.resolve_validator @ref end
valid?(data)
click to toggle source
# File lib/dto_schema/validators.rb, line 63 def valid? (data) resolve.valid? data end
valid_structure?(data)
click to toggle source
# File lib/dto_schema/validators.rb, line 71 def valid_structure? (data) resolve.valid_structure? data end
validate(data)
click to toggle source
# File lib/dto_schema/validators.rb, line 67 def validate (data) resolve.validate data end