Class: Validation::Rule::OneOf
- Inherits:
-
Object
- Object
- Validation::Rule::OneOf
- Defined in:
- lib/validation/rule/one_of.rb
Instance Method Summary collapse
- #error_key ⇒ Object
-
#initialize(params) ⇒ OneOf
constructor
A new instance of OneOf.
- #params ⇒ Object
- #valid_value?(value) ⇒ Boolean
Constructor Details
#initialize(params) ⇒ OneOf
Returns a new instance of OneOf.
5 6 7 |
# File 'lib/validation/rule/one_of.rb', line 5 def initialize(params) @params = params end |
Instance Method Details
#error_key ⇒ Object
9 10 11 |
# File 'lib/validation/rule/one_of.rb', line 9 def error_key :one_of end |
#params ⇒ Object
17 18 19 |
# File 'lib/validation/rule/one_of.rb', line 17 def params @params end |
#valid_value?(value) ⇒ Boolean
13 14 15 |
# File 'lib/validation/rule/one_of.rb', line 13 def valid_value?(value) end |