Class: GeneratedSchemaValidations::Table::ValidationWithoutEnum
- Inherits:
-
Struct
- Object
- Struct
- GeneratedSchemaValidations::Table::ValidationWithoutEnum
- Defined in:
- lib/generated_schema_validations/table.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#options ⇒ Object
Returns the value of attribute options.
-
#validator ⇒ Object
Returns the value of attribute validator.
Instance Method Summary collapse
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute
10 11 12 |
# File 'lib/generated_schema_validations/table.rb', line 10 def attribute @attribute end |
#options ⇒ Object
Returns the value of attribute options
10 11 12 |
# File 'lib/generated_schema_validations/table.rb', line 10 def end |
#validator ⇒ Object
Returns the value of attribute validator
10 11 12 |
# File 'lib/generated_schema_validations/table.rb', line 10 def validator @validator end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/generated_schema_validations/table.rb', line 11 def to_s "validates_with_filter #{attribute.to_sym.inspect}, #{{ validator => options }.inspect} unless enums.include?(#{attribute.to_sym.inspect})" end |