Method: Datadog::Core::HashHeaderCollection#initialize
- Defined in:
- lib/datadog/core/header_collection.rb
#initialize(hash) ⇒ HashHeaderCollection
Returns a new instance of HashHeaderCollection.
31 32 33 34 35 36 |
# File 'lib/datadog/core/header_collection.rb', line 31 def initialize(hash) super() @hash = {}.tap do |res| hash.each_pair { |key, value| res[key.downcase] = value } end end |