Class: FakeAWS::S3

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_aws/s3.rb,
lib/fake_aws/s3/bucket.rb,
lib/fake_aws/s3/s3_object.rb,
lib/fake_aws/s3/bucket_collection.rb,
lib/fake_aws/s3/object_collection.rb

Defined Under Namespace

Classes: Bucket, BucketCollection, ObjectCollection, S3Object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ S3

Returns a new instance of S3.



8
9
10
11
# File 'lib/fake_aws/s3.rb', line 8

def initialize(options = {})
  @options = options
  @buckets = BucketCollection.new
end

Instance Attribute Details

#bucketsObject (readonly)

Returns the value of attribute buckets.



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

def buckets
  @buckets
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end