Class: AWS

Inherits:
Object
  • Object
show all
Defined in:
lib/aws.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 options
  @host       = options[:host]
  @port       = options[:port]
  @access_key = options[:access_key]
  @secret_key = options[:secret_key]
  @project    = options[:project]
end

Instance Attribute Details

#path=(value) ⇒ Object (writeonly)

Sets the attribute path

Parameters:

  • value

    the value to set the attribute path to.



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