Class: AWS
- Inherits:
-
Object
- Object
- AWS
- Defined in:
- lib/aws.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
writeonly
Sets the attribute path.
Instance Method Summary collapse
-
#initialize(options) ⇒ AWS
constructor
A new instance of AWS.
- #signed_params(method, params) ⇒ Object
Constructor Details
#initialize(options) ⇒ AWS
Returns a new instance of AWS.
11 12 13 14 15 16 17 |
# File 'lib/aws.rb', line 11 def initialize @host = [:host] @port = [:port] @access_key = [:access_key] @secret_key = [:secret_key] @project = [:project] end |
Instance Attribute Details
#path=(value) ⇒ Object (writeonly)
Sets the attribute path
9 10 11 |
# File 'lib/aws.rb', line 9 def path=(value) @path = value end |
Instance Method Details
#signed_params(method, params) ⇒ Object
19 20 21 |
# File 'lib/aws.rb', line 19 def signed_params method, params sign method, common_params.merge(params) end |