Class Net::Amazon::S3::Bucket
In: lib/net/amazon/s3/bucket.rb
Parent: Object

Represents an Amazon S3 bucket. This class should only be instantiated through one of the methods in the S3 class.

Methods

Included Modules

Comparable Enumerable

Attributes

creation_date  [R] 
name  [R] 

Public Class methods

Creates and returns a new Bucket object. You should never create new Bucket objects directly. Instead, use one of the methods in the S3 class.

Public Instance methods

Compares two buckets by name.

[](object_key)

Alias for get_object

[]=(object_key, value, metadata = {})

Alias for create_object

Creates and returns a new S3::Object with the specified object_key and value. If this bucket already contains an object with the specified key, that object will be overwritten.

If value is an open IO stream, the value of the object will be read from the stream.

Deletes the specified object from this bucket.

Iterates through the list of objects.

Returns a S3::Object representing the specified object_key, or nil if the object doesn‘t exist in this bucket.

Gets a list of all objects in this bucket whose keys begin with prefix. Returns a Hash of S3::Object objects indexed by object key.

has_object?(object_key)

Alias for object_exist?

Returns true if an object with the specified object_key exists in this bucket, false otherwise.

[Validate]