Class: AzureBlob::Metadata
- Inherits:
-
Object
- Object
- AzureBlob::Metadata
- Defined in:
- lib/azure_blob/metadata.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(metadata = nil) ⇒ Metadata
constructor
A new instance of Metadata.
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
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
10 11 12 |
# File 'lib/azure_blob/metadata.rb', line 10 def headers @headers end |