Class: S3Archive::Config
- Inherits:
-
Object
- Object
- S3Archive::Config
- Defined in:
- lib/s3archive/config.rb
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Config
constructor
A new instance of Config.
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_id ⇒ Object
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 |
#bucket ⇒ Object
Returns the value of attribute bucket.
18 19 20 |
# File 'lib/s3archive/config.rb', line 18 def bucket @bucket end |
#secret_access_key ⇒ Object
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_yaml ⇒ Object
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 |