Class: S3Archive::Config

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Config

Returns a new instance of Config.



20
21
22
23
24
# File 'lib/s3archive/config.rb', line 20

def initialize(params = {})
  params.each do |key, val|
    send("#{key}=", val)
  end
end

Instance Attribute Details

#access_key_idObject

Returns the value of attribute access_key_id.



18
19
20
# File 'lib/s3archive/config.rb', line 18

def access_key_id
  @access_key_id
end

#bucketObject

Returns the value of attribute bucket.



18
19
20
# File 'lib/s3archive/config.rb', line 18

def bucket
  @bucket
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



18
19
20
# File 'lib/s3archive/config.rb', line 18

def secret_access_key
  @secret_access_key
end

Class Method Details

.sample_yamlObject



26
27
28
29
30
# File 'lib/s3archive/config.rb', line 26

def self.sample_yaml
  {"bucket" => "BUCKET",
   "access_key_id" => "ACCESS_KEY_ID",
   "secret_access_key" => "SECRET_ACCESS_KEY_ID"}.to_yaml
end