Class: Simplepay::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/simplepay/authentication.rb

Instance Method Summary collapse

Constructor Details

#initialize(uri, params, secret_key = Simplepay.aws_secret_access_key) ⇒ Signature

Returns a new instance of Signature.



10
11
12
13
14
# File 'lib/simplepay/authentication.rb', line 10

def initialize(uri, params, secret_key = Simplepay.aws_secret_access_key)
  @uri = uri
  @params = params
  @secret_key = secret_key
end

Instance Method Details

#signObject



16
17
18
19
# File 'lib/simplepay/authentication.rb', line 16

def sign
  make_canonical_string
  compute_signature
end