Class: Datadog::Core::Remote::Configuration::DigestList

Inherits:
Array
  • Object
show all
Defined in:
lib/datadog/core/remote/configuration/digest.rb

Overview

Represent a list of Configuration::Digest

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.parse(hash) ⇒ Object



12
13
14
# File 'lib/datadog/core/remote/configuration/digest.rb', line 12

def parse(hash)
  new.concat(hash.map { |type, hexdigest| Digest.new(type, hexdigest) })
end

Instance Method Details

#check(content) ⇒ Object



17
18
19
# File 'lib/datadog/core/remote/configuration/digest.rb', line 17

def check(content)
  map { |digest| digest.check(content) }.reduce(:&)
end