Class: Jeff::Request
- Inherits:
-
Struct
- Object
- Struct
- Jeff::Request
- Defined in:
- lib/jeff.rb
Overview
Signs an AWS request.
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#method ⇒ Object
Returns the value of attribute method.
-
#path ⇒ Object
Returns the value of attribute path.
-
#query_string ⇒ Object
Returns the value of attribute query_string.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
32 33 34 |
# File 'lib/jeff.rb', line 32 def host @host end |
#method ⇒ Object
Returns the value of attribute method
32 33 34 |
# File 'lib/jeff.rb', line 32 def method @method end |
#path ⇒ Object
Returns the value of attribute path
32 33 34 |
# File 'lib/jeff.rb', line 32 def path @path end |
#query_string ⇒ Object
Returns the value of attribute query_string
32 33 34 |
# File 'lib/jeff.rb', line 32 def query_string @query_string end |
Instance Method Details
#sign(aws_secret_access_key) ⇒ Object
33 34 35 |
# File 'lib/jeff.rb', line 33 def sign(aws_secret_access_key) Signature.new(aws_secret_access_key).sign(string_to_sign) end |
#string_to_sign ⇒ Object
37 38 39 |
# File 'lib/jeff.rb', line 37 def string_to_sign [method, host, path, query_string].join("\n") end |