Class: Datadog::Tracing::Distributed::Fetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/tracing/distributed/fetcher.rb

Overview

Common fetcher that retrieves fields from a Hash data input

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Fetcher

Returns a new instance of Fetcher.

Parameters:

  • data (Hash)


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