Class: FakeAWS::S3::Bucket
- Inherits:
-
Object
- Object
- FakeAWS::S3::Bucket
- Defined in:
- lib/fake_aws/s3/bucket.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
Instance Method Summary collapse
-
#initialize(name) ⇒ Bucket
constructor
A new instance of Bucket.
Constructor Details
#initialize(name) ⇒ Bucket
Returns a new instance of Bucket.
8 9 10 11 |
# File 'lib/fake_aws/s3/bucket.rb', line 8 def initialize(name) @name = name @objects = ObjectCollection.new(self) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/fake_aws/s3/bucket.rb', line 13 def name @name end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
14 15 16 |
# File 'lib/fake_aws/s3/bucket.rb', line 14 def objects @objects end |