class URI::Generic
Public Instance Methods
signature_valid?(*options)
click to toggle source
Checks the validity of the current URI
signature.
signed_url = URI.parse('http://google.fr').signed signed_url.signature_valid? # => true
for options
see UrlSigner#verify.
# File lib/url_signer/uri.rb, line 23 def signature_valid?(*options) UrlSigner.valid?(self, *options) end
signed(*options)
click to toggle source
Return a signed version of the URI
.
url = URI.parse('http://google.fr') signed_url = url.signed
for options
see UrlSigner#sign
.
# File lib/url_signer/uri.rb, line 13 def signed(*options) UrlSigner.sign(self, *options) end