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.



325
326
327
328
329
# File 'lib/aws/s3/object.rb', line 325

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

Instance Method Details

#[](header) ⇒ Object



331
332
333
# File 'lib/aws/s3/object.rb', line 331

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

#[]=(header, value) ⇒ Object



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

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

#metadataObject



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

def 
  Metadata.new(self)
end

#to_headersObject



339
340
341
# File 'lib/aws/s3/object.rb', line 339

def to_headers
  self.merge(.to_headers)
end