Module: DataMapper::S3::InstanceMethods

Defined in:
lib/dm-s3.rb

Instance Method Summary collapse

Instance Method Details

#s3Object



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, options = nil)
  self.class.connector.store(self, file, options)
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(options = {:authenticated => false}) 
  s3.url(options)
end