Class: Datadog::Core::Remote::Dispatcher::Matcher::Product

Inherits:
Datadog::Core::Remote::Dispatcher::Matcher show all
Defined in:
lib/datadog/core/remote/dispatcher.rb

Overview

Matches on the product’s path

Instance Method Summary collapse

Methods inherited from Datadog::Core::Remote::Dispatcher::Matcher

#match?

Constructor Details

#initialize(products) ⇒ Product

Returns a new instance of Product.



50
51
52
53
# File 'lib/datadog/core/remote/dispatcher.rb', line 50

def initialize(products)
  block = ->(path) { products.include?(path.product) }
  super(&block)
end