Module: S3asy::ClassMethods

Defined in:
lib/s3asy.rb

Instance Method Summary collapse

Instance Method Details

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



11
12
13
14
15
# File 'lib/s3asy.rb', line 11

def has_s3object name, options = {}
  define_method name do |*args|
    S3ObjectProxy.new(options.merge(:path => self.send(:"#{name}_name")))
  end
end