Class: AWS::S3::S3Object::About
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
Methods inherited from Hash
#to_normalized_options, #to_normalized_options!, #to_query_string
Constructor Details
#initialize(headers) ⇒ About
Returns a new instance of About.
279 280 281 282 283 |
# File 'lib/aws/s3/object.rb', line 279 def initialize(headers) super() replace(headers) end |
Instance Method Details
#[](header) ⇒ Object
285 286 287 |
# File 'lib/aws/s3/object.rb', line 285 def [](header) super(header.to_header) end |
#[]=(header, value) ⇒ Object
289 290 291 |
# File 'lib/aws/s3/object.rb', line 289 def []=(header, value) super(header.to_header, value) end |
#to_headers ⇒ Object
293 294 295 |
# File 'lib/aws/s3/object.rb', line 293 def to_headers self.merge(.to_headers) end |