Class: FakeAWS::S3::Responses::Error

Inherits:
Rack::Response
  • Object
show all
Includes:
Common
Defined in:
lib/fake_aws/s3/responses/error.rb

Instance Method Summary collapse

Methods included from Common

#to_rack_response

Constructor Details

#initialize(error_code, fields = {}) ⇒ Error

Returns a new instance of Error.



10
11
12
13
14
15
# File 'lib/fake_aws/s3/responses/error.rb', line 10

def initialize(error_code, fields = {})
  @error_code = error_code
  @fields     = fields

  super xml_payload, status_code, common_headers
end