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.
307 308 309 310 311 |
# File 'lib/aws/s3/object.rb', line 307 def initialize(headers) super() replace(headers) end |
Instance Method Details
#[](header) ⇒ Object
313 314 315 |
# File 'lib/aws/s3/object.rb', line 313 def [](header) super(header.to_header) end |
#[]=(header, value) ⇒ Object
317 318 319 |
# File 'lib/aws/s3/object.rb', line 317 def []=(header, value) super(header.to_header, value) end |
#to_headers ⇒ Object
321 322 323 |
# File 'lib/aws/s3/object.rb', line 321 def to_headers self.merge(.to_headers) end |