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.



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

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

Instance Method Details

#[](header) ⇒ Object



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

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

#[]=(header, value) ⇒ Object



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

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

#metadataObject



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

def 
  Metadata.new(self)
end

#to_headersObject



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

def to_headers
  self.merge(.to_headers)
end