class Presto::Transformation::Validator
Constants
- FIT_TYPES
- HEXDECIMAL_ALPHA_REGEX
- HEXDECIMAL_LONG_REGEX
- HEXDECIMAL_SHORT_REGEX
- QUALITY_MAX
- QUALITY_MIN
Public Class Methods
config()
click to toggle source
# File lib/presto/transformation/validator.rb, line 16 def self.config Presto.configuration end
Private Instance Methods
validate_bg_format()
click to toggle source
# File lib/presto/transformation/validator.rb, line 29 def validate_bg_format unless entity.bg =~ HEXDECIMAL_LONG_REGEX || entity.bg =~ HEXDECIMAL_SHORT_REGEX || entity.bg =~ HEXDECIMAL_ALPHA_REGEX errors.add(:bg, "is not valid") end end