Class: Ungulate::S3Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/ungulate/s3_storage.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ S3Storage

Returns a new instance of S3Storage.



3
4
5
# File 'lib/ungulate/s3_storage.rb', line 3

def initialize(options)
  @s3 = RightAws::S3.new *options.values_at(:access_key_id, :secret_access_key)
end

Instance Method Details

#bucket(name, options = {}) ⇒ Object



7
8
9
# File 'lib/ungulate/s3_storage.rb', line 7

def bucket(name, options = {})
  S3Bucket.new(@s3, name, options)
end