Class: S3Sync::Configuration
- Inherits:
-
Object
- Object
- S3Sync::Configuration
- Defined in:
- lib/s3_sync/configuration.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#downloads_dir ⇒ Object
Returns the value of attribute downloads_dir.
-
#files ⇒ Object
Returns the value of attribute files.
-
#key_id ⇒ Object
Returns the value of attribute key_id.
-
#key_secret ⇒ Object
Returns the value of attribute key_secret.
-
#region ⇒ Object
Returns the value of attribute region.
-
#secret_phrase ⇒ Object
Returns the value of attribute secret_phrase.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 23 24 |
# File 'lib/s3_sync/configuration.rb', line 16 def initialize( = {}) @key_id = [:key_id] @key_secret = [:key_secret] @secret_phrase = [:secret_phrase] @bucket = [:bucket] @region = [:region] @downloads_dir = [:downloads_dir] || File.join(Dir.home,"Desktop","s3-downloads") @files = [:files] end |
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket.
3 4 5 |
# File 'lib/s3_sync/configuration.rb', line 3 def bucket @bucket end |
#downloads_dir ⇒ Object
Returns the value of attribute downloads_dir.
3 4 5 |
# File 'lib/s3_sync/configuration.rb', line 3 def downloads_dir @downloads_dir end |
#files ⇒ Object
Returns the value of attribute files.
3 4 5 |
# File 'lib/s3_sync/configuration.rb', line 3 def files @files end |
#key_id ⇒ Object
Returns the value of attribute key_id.
3 4 5 |
# File 'lib/s3_sync/configuration.rb', line 3 def key_id @key_id end |
#key_secret ⇒ Object
Returns the value of attribute key_secret.
3 4 5 |
# File 'lib/s3_sync/configuration.rb', line 3 def key_secret @key_secret end |
#region ⇒ Object
Returns the value of attribute region.
3 4 5 |
# File 'lib/s3_sync/configuration.rb', line 3 def region @region end |
#secret_phrase ⇒ Object
Returns the value of attribute secret_phrase.
3 4 5 |
# File 'lib/s3_sync/configuration.rb', line 3 def secret_phrase @secret_phrase end |