Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/wavefront-sdk/stdlib/hash.rb

Overview

Extensions to stdlib Hash

Instance Method Summary collapse

Instance Method Details

#to_wf_tagObject

Convert a tag hash into a string. The quoting is recommended in the WF wire-format guide. No validation is performed here.

rubocop:disable Style/FormatStringToken



10
11
12
# File 'lib/wavefront-sdk/stdlib/hash.rb', line 10

def to_wf_tag
  map { |k, v| format('%s="%s"', k, v.tagescape) }.join(' ')
end