module Fog::Proxmox::Hash
module Hash
mixins
Public Class Methods
flatten(hash)
click to toggle source
# File lib/fog/proxmox/hash.rb, line 30 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 24 def self.stringify(hash) filtered = hash.reject { |_key, value| value.nil? } a = filtered.to_a.collect { |item| item.join('=') } a.join(',') end