class Jeff::Signer

Signs an AWS request.

Attributes

host[R]
method[R]
path[R]
query_string[R]

Public Class Methods

new(method, host, path, query_string) click to toggle source
# File lib/jeff.rb, line 46
def initialize(method, host, path, query_string)
  @method = method.upcase
  @host = host
  @path = path
  @query_string = query_string
end

Public Instance Methods

sign_with(aws_secret_access_key) click to toggle source
# File lib/jeff.rb, line 53
def sign_with(aws_secret_access_key)
  Signature.new(aws_secret_access_key).sign(string_to_sign)
end
string_to_sign() click to toggle source
# File lib/jeff.rb, line 57
def string_to_sign
  [method, host, path, query_string].join("\n")
end