Class: FakeAWS::S3::Responses::Error
- Inherits:
-
Rack::Response
- Object
- Rack::Response
- FakeAWS::S3::Responses::Error
- Includes:
- Common
- Defined in:
- lib/fake_aws/s3/responses/error.rb
Instance Method Summary collapse
-
#initialize(error_code, fields = {}) ⇒ Error
constructor
A new instance of Error.
Methods included from Common
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 |