Class: Karafka::Core::Contractable::Rule

Inherits:
Struct
  • Object
show all
Defined in:
lib/karafka/core/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



7
8
9
# File 'lib/karafka/core/contractable/rule.rb', line 7

def path
  @path
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



7
8
9
# File 'lib/karafka/core/contractable/rule.rb', line 7

def type
  @type
end

#validatorObject

Returns the value of attribute validator

Returns:

  • (Object)

    the current value of validator



7
8
9
# File 'lib/karafka/core/contractable/rule.rb', line 7

def validator
  @validator
end