Class: AWS::S3::S3Object::Metadata
Overview
:nodoc:
Constant Summary
- HEADER_PREFIX =
'x-amz-meta-'- SIZE_LIMIT =
2 kilobytes
2048
Instance Method Summary (collapse)
- - (Object) [](header)
- - (Object) []=(header, value)
-
- (Metadata) initialize(headers)
constructor
A new instance of Metadata.
- - (Object) to_headers
Methods inherited from Hash
#to_normalized_options, #to_normalized_options!, #to_query_string
Constructor Details
- (Metadata) initialize(headers)
A new instance of Metadata
362 363 364 365 366 |
# File 'lib/aws/s3/object.rb', line 362 def initialize(headers) @headers = headers super() end |
Instance Method Details
- (Object) [](header)
372 373 374 |
# File 'lib/aws/s3/object.rb', line 372 def [](header) super(header_name(header.to_header)) end |
- (Object) []=(header, value)
368 369 370 |
# File 'lib/aws/s3/object.rb', line 368 def []=(header, value) super(header_name(header.to_header), value) end |
- (Object) to_headers
376 377 378 379 |
# File 'lib/aws/s3/object.rb', line 376 def to_headers validate! self end |