Class: RailsS3Uploader::Configuration
- Inherits:
-
Object
- Object
- RailsS3Uploader::Configuration
- Defined in:
- lib/rails_s3_uploader/configuration.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.
-
#region ⇒ Object
Returns the value of attribute region.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/rails_s3_uploader/configuration.rb', line 5 def initialize @access_key_id = ENV['AWS_ACCESS_KEY_ID'] @secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] @region = ENV['AWS_REGION'] @bucket = ENV['AWS_BUCKET'] end |
Instance Attribute Details
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
3 4 5 |
# File 'lib/rails_s3_uploader/configuration.rb', line 3 def access_key_id @access_key_id end |
#bucket ⇒ Object
Returns the value of attribute bucket.
3 4 5 |
# File 'lib/rails_s3_uploader/configuration.rb', line 3 def bucket @bucket end |
#region ⇒ Object
Returns the value of attribute region.
3 4 5 |
# File 'lib/rails_s3_uploader/configuration.rb', line 3 def region @region end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
3 4 5 |
# File 'lib/rails_s3_uploader/configuration.rb', line 3 def secret_access_key @secret_access_key end |