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

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

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Hash

#to_normalized_options, #to_normalized_options!, #to_query_string

Constructor Details

#initialize(headers) ⇒ About

Returns a new instance of About



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

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

Instance Method Details

#[](header) ⇒ Object



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

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

#[]=(header, value) ⇒ Object



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

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

#metadataObject



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

def 
  Metadata.new(self)
end

#to_headersObject



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

def to_headers
  self.merge(.to_headers)
end