Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::HMAC

Public Class Methods

new(type, key) click to toggle source
# File lib/fog/core/hmac.rb, line 4
def initialize(type, key)
  @key = key
  case type
  when 'sha1'
    setup_sha1
  when 'sha256'
    setup_sha256
  end
end

Public Instance Methods

sign(data) click to toggle source
# File lib/fog/core/hmac.rb, line 14
def sign(data)
  @signer.call(data)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.