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.
33 34 35 36 |
# File 'lib/validation_profiler/rules/rules.rb', line 33 def initialize(rule, field) @rule = rule @field = field end |
Instance Method Details
#to_s ⇒ Object
38 39 40 41 42 |
# File 'lib/validation_profiler/rules/rules.rb', line 38 def to_s rule = @rule field = @field "Field: #{field} has an incorrect value type for Validation Rule: #{rule}." end |