Class: DataMapper::S3::InstanceBucketConnector

Inherits:
BaseBucketConnector show all
Defined in:
lib/dm-s3.rb

Instance Method Summary collapse

Methods inherited from BaseBucketConnector

#initialize

Constructor Details

This class inherits a constructor from DataMapper::S3::BaseBucketConnector

Instance Method Details

#get_s3_object(instance) ⇒ Object



22
23
24
25
# File 'lib/dm-s3.rb', line 22

def get_s3_object(instance)
  s3(instance)
  super
end

#s3(instance) ⇒ Object



32
33
34
# File 'lib/dm-s3.rb', line 32

def s3(instance)
  @s3.set_current_bucket_to instance.s3_bucket
end

#store(instance, file, options) ⇒ Object



27
28
29
30
# File 'lib/dm-s3.rb', line 27

def store(instance, file, options)
  s3(instance)
  super
end