class YaKassa::V3::Validators::FloatOrNil

Private Instance Methods

condition() click to toggle source
# File lib/ya_kassa/v3/validators/float_or_nil.rb, line 7
def condition
  value.is_a?(Float) || value.nil?
end
error_msg() click to toggle source
# File lib/ya_kassa/v3/validators/float_or_nil.rb, line 11
def error_msg
  "Should be present"
end