Class: Typhoeus::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/jedlik/typhoeus/request.rb

Instance Method Summary collapse

Instance Method Details

#sign(sts) ⇒ Object



5
6
7
# File 'lib/jedlik/typhoeus/request.rb', line 5

def sign sts
  headers.merge! 'x-amzn-authorization' => "AWS3 AWSAccessKeyId=#{sts.access_key_id},Algorithm=HmacSHA256,Signature=#{digest sts.secret_access_key}"
end