Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/wavefront-sdk/stdlib/hash.rb
Overview
Extensions to stdlib Hash
Instance Method Summary collapse
-
#to_wf_tag ⇒ Object
Convert a tag hash into a string.
Instance Method Details
#to_wf_tag ⇒ Object
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 |