Class: UrlSigner::Signer

Inherits:
Base
  • Object
show all
Defined in:
lib/url_signer/signer.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Base

#hash_method, #key, #url

Instance Method Summary collapse

Methods inherited from Base

#initialize, #signature

Constructor Details

This class inherits a constructor from UrlSigner::Base

Instance Method Details

#signObject



6
7
8
9
10
11
12
13
# File 'lib/url_signer/signer.rb', line 6

def sign
  raise "this URL is already signed !" if signed?

  # build new url
  signed_url = url.dup
  signed_url.query = extended_query
  signed_url
end