Class: Cerbos::Hub::Stores::Input::StringMatch::Contains

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

Overview

Filter to match a string by a substring.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:) ⇒ Contains

Specify a filter to match a string by a substring.

Parameters:

  • value (String)

    the substring to match.



43
44
45
# File 'lib/cerbos/hub/stores/input/string_match.rb', line 43

def initialize(value:)
  @value = value
end

Instance Attribute Details

#valueString (readonly)

The substring to match.

Returns:

  • (String)


38
39
40
# File 'lib/cerbos/hub/stores/input/string_match.rb', line 38

def value
  @value
end