Class: S3Multipart::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/s3_multipart/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bucket_nameObject

Returns the value of attribute bucket_name.



6
7
8
# File 'lib/s3_multipart/config.rb', line 6

def bucket_name
  @bucket_name
end

#revisionObject

Returns the value of attribute revision.



6
7
8
# File 'lib/s3_multipart/config.rb', line 6

def revision
  @revision
end

#s3_access_keyObject

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_keyObject

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_changesObject



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