Class: AWS::S3::S3Object::About

Inherits:
Hash
  • Object
show all
Defined in:
lib/aws/s3/object.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(headers) ⇒ About

Returns a new instance of About.



336
337
338
339
340
# File 'lib/aws/s3/object.rb', line 336

def initialize(headers)
  super()
  replace(headers)
  
end

Instance Method Details

#[](header) ⇒ Object



342
343
344
# File 'lib/aws/s3/object.rb', line 342

def [](header)
  super(header.to_header)
end

#[]=(header, value) ⇒ Object



346
347
348
# File 'lib/aws/s3/object.rb', line 346

def []=(header, value)
  super(header.to_header, value)
end

#metadataObject



354
355
356
# File 'lib/aws/s3/object.rb', line 354

def 
  Metadata.new(self)
end

#to_headersObject



350
351
352
# File 'lib/aws/s3/object.rb', line 350

def to_headers
  self.merge(.to_headers)
end