Module: Fog::Voxel

Extended by:
Provider
Defined in:
lib/fog/voxel.rb,
lib/fog/voxel/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.create_signature(secret, options) ⇒ Object



12
13
14
15
# File 'lib/fog/voxel.rb', line 12

def self.create_signature(secret, options)
  to_sign = options.keys.map { |k| k.to_s }.sort.map { |k| "#{k}#{options[k.to_sym]}" }.join("")
  Digest::MD5.hexdigest( secret + to_sign )
end