Class: GeneratedSchemaValidations::Table::Validation
- Inherits:
-
Struct
- Object
- Struct
- GeneratedSchemaValidations::Table::Validation
- 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
4 5 6 |
# File 'lib/generated_schema_validations/table.rb', line 4 def attribute @attribute end |
#options ⇒ Object
Returns the value of attribute options
4 5 6 |
# File 'lib/generated_schema_validations/table.rb', line 4 def @options end |
#validator ⇒ Object
Returns the value of attribute validator
4 5 6 |
# File 'lib/generated_schema_validations/table.rb', line 4 def validator @validator end |
Instance Method Details
#to_s ⇒ Object
5 6 7 |
# File 'lib/generated_schema_validations/table.rb', line 5 def to_s "validates_with_filter #{attribute.to_sym.inspect}, #{{ validator => }.inspect}" end |