Class: AWS::S3::S3Object::About
- Inherits:
-
Hash
- Object
- Hash
- AWS::S3::S3Object::About
- Defined in:
- lib/aws/s3/object.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[](header) ⇒ Object
- #[]=(header, value) ⇒ Object
-
#initialize(headers) ⇒ About
constructor
A new instance of About.
- #metadata ⇒ Object
- #to_headers ⇒ Object
Constructor Details
#initialize(headers) ⇒ About
Returns a new instance of About.
326 327 328 329 330 |
# File 'lib/aws/s3/object.rb', line 326 def initialize(headers) super() replace(headers) end |
Instance Method Details
#[](header) ⇒ Object
332 333 334 |
# File 'lib/aws/s3/object.rb', line 332 def [](header) super(header.to_header) end |
#[]=(header, value) ⇒ Object
336 337 338 |
# File 'lib/aws/s3/object.rb', line 336 def []=(header, value) super(header.to_header, value) end |
#to_headers ⇒ Object
340 341 342 |
# File 'lib/aws/s3/object.rb', line 340 def to_headers self.merge(.to_headers) end |