Class: Datadog::Core::Remote::Dispatcher::Matcher::Product
- Inherits:
-
Datadog::Core::Remote::Dispatcher::Matcher
- Object
- Datadog::Core::Remote::Dispatcher::Matcher
- Datadog::Core::Remote::Dispatcher::Matcher::Product
- Defined in:
- lib/datadog/core/remote/dispatcher.rb
Overview
Matches on the product’s path
Instance Method Summary collapse
-
#initialize(products) ⇒ Product
constructor
A new instance of Product.
Methods inherited from Datadog::Core::Remote::Dispatcher::Matcher
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 |