Class: DataMapper::S3::BaseBucketConnector
- Inherits:
-
Object
- Object
- DataMapper::S3::BaseBucketConnector
show all
- Defined in:
- lib/dm-s3.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BaseBucketConnector.
8
9
10
|
# File 'lib/dm-s3.rb', line 8
def initialize
@s3 = AWS::S3::S3Object
end
|
Instance Method Details
#get_s3_object(instance) ⇒ Object
12
13
14
|
# File 'lib/dm-s3.rb', line 12
def get_s3_object(instance)
@s3.find(instance.s3_key)
end
|
#store(instance, file, options) ⇒ Object
16
17
18
|
# File 'lib/dm-s3.rb', line 16
def store(instance, file, options)
@s3.store(instance.s3_key, file, options)
end
|