class OIDValidator

Validates an OpenVAS OID Used by: VasNVT

Public Instance Methods

validate_each(record, attribute, value) click to toggle source
# File lib/openvas-cli/oid_validator.rb, line 6
def validate_each(record, attribute, value)
  record.errors[attribute] << (options[:message] || "is not a valid UUID") unless
    value =~ /\A[0-9\.]{1,80}\z/
end