Class: Cerbos::Hub::Stores::Input::StringMatch::In

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

Overview

Filter to match a string from a list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values:) ⇒ In

Specify a filter to match a string from a list.

Parameters:

  • values (Array<String>)

    the strings to match.



63
64
65
# File 'lib/cerbos/hub/stores/input/string_match.rb', line 63

def initialize(values:)
  @values = values
end

Instance Attribute Details

#valuesArray<String> (readonly)

The strings to match.

Returns:

  • (Array<String>)


58
59
60
# File 'lib/cerbos/hub/stores/input/string_match.rb', line 58

def values
  @values
end