Class: Hash

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

Overview

Extensions to the Hash class

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.



41
42
43
# File 'lib/wavefront-sdk/mixins.rb', line 41

def to_wf_tag
  self.map { |k, v| "#{k}=\"#{v}\"" }.join(' ')
end