Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/wavefront-sdk/mixins.rb
Overview
Extensions to the Hash class
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.
41 42 43 |
# File 'lib/wavefront-sdk/mixins.rb', line 41 def to_wf_tag self.map { |k, v| "#{k}=\"#{v}\"" }.join(' ') end |