Class: FakeAWS::S3::Bucket

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_aws/s3/bucket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/fake_aws/s3/bucket.rb', line 13

def name
  @name
end

#objectsObject (readonly)

Returns the value of attribute objects.



14
15
16
# File 'lib/fake_aws/s3/bucket.rb', line 14

def objects
  @objects
end