Class: S3::BucketCollection
- Inherits:
-
Driver::Model
- Object
- Driver::Model
- S3::BucketCollection
- Includes:
- Enumerable
- Defined in:
- lib/s3/client/model/bucket_collection.rb
Instance Method Summary collapse
Instance Method Details
#[](bucket_name) ⇒ Bucket
17 18 19 |
# File 'lib/s3/client/model/bucket_collection.rb', line 17 def [] bucket_name bucket_named(bucket_name) end |
#create(bucket_name) ⇒ Object
5 6 7 8 |
# File 'lib/s3/client/model/bucket_collection.rb', line 5 def create(bucket_name) @api.create_bucket(bucket_name) bucket_named(bucket_name) end |