class UdooNeoRest::ValidateValue
value : the value to be validated
Public Instance Methods
valid?()
click to toggle source
# File lib/udooneorest/validators.rb, line 70 def valid? if (@value != VALUE_LOW ) && (@value != VALUE_HIGH) @error_message = UdooNeoRest::Base.status_error("Value of '#{@value}' is invalid. Should be one of #{VALUE_LOW} or #{VALUE_HIGH}.") return false end @error_message = nil true end