Module: DataMapper::S3::InstanceMethods
- Defined in:
- lib/dm-s3.rb
Instance Method Summary collapse
- #s3 ⇒ Object
- #store_with(file, options = nil) ⇒ Object
-
#url(options = {:authenticated => false}) ⇒ Object
Shortcut method for urls - defaults to unauthenticated.
Instance Method Details
#s3 ⇒ Object
65 66 67 |
# File 'lib/dm-s3.rb', line 65 def s3 self.class.connector.get_s3_object(self) end |
#store_with(file, options = nil) ⇒ Object
69 70 71 |
# File 'lib/dm-s3.rb', line 69 def store_with(file, = nil) self.class.connector.store(self, file, ) end |
#url(options = {:authenticated => false}) ⇒ Object
Shortcut method for urls - defaults to unauthenticated
74 75 76 |
# File 'lib/dm-s3.rb', line 74 def url( = {:authenticated => false}) s3.url() end |