module Fog::Proxmox::Hash

module Hash mixins

Public Class Methods

flatten(hash) click to toggle source
# File lib/fog/proxmox/hash.rb, line 31
def self.flatten(hash)
  filtered = hash.reject { |_key, value| value.nil? }
  a = filtered.to_a.collect { |item| item.join(': ') }
  a.join(',')
end
stringify(hash) click to toggle source
# File lib/fog/proxmox/hash.rb, line 25
def self.stringify(hash)
  filtered = hash.reject { |_key, value| value.nil? }
  a = filtered.to_a.collect { |item| item.join('=') }
  a.join(',')
end