Class: S3Multipart::Config
- Inherits:
-
Object
- Object
- S3Multipart::Config
- Includes:
- Singleton
- Defined in:
- lib/s3_multipart/config.rb
Instance Attribute Summary collapse
-
#bucket_name ⇒ Object
Returns the value of attribute bucket_name.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#s3_access_key ⇒ Object
Returns the value of attribute s3_access_key.
-
#s3_secret_key ⇒ Object
Returns the value of attribute s3_secret_key.
Class Method Summary collapse
Instance Attribute Details
#bucket_name ⇒ Object
Returns the value of attribute bucket_name.
6 7 8 |
# File 'lib/s3_multipart/config.rb', line 6 def bucket_name @bucket_name end |
#revision ⇒ Object
Returns the value of attribute revision.
6 7 8 |
# File 'lib/s3_multipart/config.rb', line 6 def revision @revision end |
#s3_access_key ⇒ Object
Returns the value of attribute s3_access_key.
6 7 8 |
# File 'lib/s3_multipart/config.rb', line 6 def s3_access_key @s3_access_key end |
#s3_secret_key ⇒ Object
Returns the value of attribute s3_secret_key.
6 7 8 |
# File 'lib/s3_multipart/config.rb', line 6 def s3_secret_key @s3_secret_key end |
Class Method Details
.check_for_breaking_changes ⇒ Object
13 14 15 16 17 18 |
# File 'lib/s3_multipart/config.rb', line 13 def self.check_for_breaking_changes version = S3Multipart::VERSION if self.instance.revision != version raise ArgumentError, "Breaking changes were made to the S3_Multipart gem:\n #{BREAKING_CHANGES[version.to_sym]}\n See the Readme for additional information." end end |
.configure(block) ⇒ Object
8 9 10 11 |
# File 'lib/s3_multipart/config.rb', line 8 def self.configure(block) block.call(self.instance) check_for_breaking_changes end |