Method: S3::Bucket#object

Defined in:
lib/s3/bucket.rb

#object(key) ⇒ Object

Returns the object with the given key. Does not check whether the object exists. But also does not issue any HTTP requests, so it’s much faster than objects.find



121
122
123
# File 'lib/s3/bucket.rb', line 121

def object(key)
  Object.send(:new, self, :key => key)
end