Class: Datadog::Tracing::Distributed::Fetcher
- Inherits:
-
Object
- Object
- Datadog::Tracing::Distributed::Fetcher
- Defined in:
- lib/datadog/tracing/distributed/fetcher.rb
Overview
Common fetcher that retrieves fields from a Hash data input
Direct Known Subclasses
Contrib::GRPC::Distributed::Fetcher, Contrib::HTTP::Distributed::Fetcher
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(data) ⇒ Fetcher
constructor
A new instance of Fetcher.
Constructor Details
#initialize(data) ⇒ Fetcher
Returns a new instance of Fetcher.
11 12 13 |
# File 'lib/datadog/tracing/distributed/fetcher.rb', line 11 def initialize(data) @data = data end |
Instance Method Details
#[](key) ⇒ Object
15 16 17 |
# File 'lib/datadog/tracing/distributed/fetcher.rb', line 15 def [](key) @data[key] end |