Class: AzureBlob::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/azure_blob/metadata.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata = nil) ⇒ Metadata

Returns a new instance of Metadata.



3
4
5
6
7
8
# File 'lib/azure_blob/metadata.rb', line 3

def initialize( = nil)
  @metadata =  || {}
  @headers = @metadata.map do |key, value|
    [ :"x-ms-meta-#{key}", value.to_s ]
  end.to_h
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



10
11
12
# File 'lib/azure_blob/metadata.rb', line 10

def headers
  @headers
end