Class: Simplepay::Signature
- Inherits:
-
Object
- Object
- Simplepay::Signature
- Defined in:
- lib/simplepay/signature.rb
Instance Method Summary collapse
-
#initialize(uri, params, secret_key = Simplepay.aws_secret_access_key) ⇒ Signature
constructor
A new instance of Signature.
- #sign ⇒ Object
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/signature.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
#sign ⇒ Object
16 17 18 19 |
# File 'lib/simplepay/signature.rb', line 16 def sign make_canonical_string compute_signature end |