Class: Cerbos::Hub::Stores::Input::StringMatch::Equals

Inherits:
Cerbos::Hub::Stores::Input::StringMatch show all
Defined in:
lib/cerbos/hub/stores/input/string_match.rb

Overview

Filter to match a string exactly.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:) ⇒ Equals

Specify a filter to match a string exactly.

Parameters:

  • value (String)

    the string to match.



23
24
25
# File 'lib/cerbos/hub/stores/input/string_match.rb', line 23

def initialize(value:)
  @value = value
end

Instance Attribute Details

#valueString (readonly)

The string to match.

Returns:

  • (String)


18
19
20
# File 'lib/cerbos/hub/stores/input/string_match.rb', line 18

def value
  @value
end