Class: DatabaseValidations::AttributeValidator

Inherits:
Struct
  • Object
show all
Defined in:
lib/database_validations/lib/attribute_validator.rb

Instance Attribute Summary collapse

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



2
3
4
# File 'lib/database_validations/lib/attribute_validator.rb', line 2

def attribute
  @attribute
end

#validatorObject

Returns the value of attribute validator

Returns:

  • (Object)

    the current value of validator



2
3
4
# File 'lib/database_validations/lib/attribute_validator.rb', line 2

def validator
  @validator
end