Class: WaterDrop::Contractable::Rule

Inherits:
Struct
  • Object
show all
Defined in:
lib/waterdrop/contractable/rule.rb

Overview

Representation of a single validation rule

Instance Attribute Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



6
7
8
# File 'lib/waterdrop/contractable/rule.rb', line 6

def path
  @path
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/waterdrop/contractable/rule.rb', line 6

def type
  @type
end

#validatorObject

Returns the value of attribute validator

Returns:

  • (Object)

    the current value of validator



6
7
8
# File 'lib/waterdrop/contractable/rule.rb', line 6

def validator
  @validator
end