Class: TestBench::Session::Substitute::Sink::Record

Inherits:
Struct
  • Object
show all
Defined in:
lib/test_bench/session/substitute/sink.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#event_dataObject

Returns the value of attribute event_data

Returns:

  • (Object)

    the current value of event_data



100
101
102
# File 'lib/test_bench/session/substitute/sink.rb', line 100

def event_data
  @event_data
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



100
101
102
# File 'lib/test_bench/session/substitute/sink.rb', line 100

def path
  @path
end

Instance Method Details

#match?(path_segments) ⇒ Boolean

Returns:

  • (Boolean)


101
102
103
104
105
106
107
# File 'lib/test_bench/session/substitute/sink.rb', line 101

def match?(path_segments)
  if path_segments.any?
    path.match?(*path_segments)
  else
    true
  end
end