Exception: InvalidFieldType
- Inherits:
-
StandardError
- Object
- StandardError
- InvalidFieldType
- Defined in:
- lib/validation_profiler/rules/rules.rb
Instance Method Summary collapse
-
#initialize(rule, field) ⇒ InvalidFieldType
constructor
A new instance of InvalidFieldType.
- #to_s ⇒ Object
Constructor Details
#initialize(rule, field) ⇒ InvalidFieldType
Returns a new instance of InvalidFieldType.
32 33 34 35 |
# File 'lib/validation_profiler/rules/rules.rb', line 32 def initialize(rule, field) @rule = rule @field = field end |
Instance Method Details
#to_s ⇒ Object
37 38 39 40 41 |
# File 'lib/validation_profiler/rules/rules.rb', line 37 def to_s rule = @rule field = @field "Field: #{field} has an incorrect value type for Validation Rule: #{rule}." end |