Class: Azure::Storage::Blob::Block

Inherits:
Object
  • Object
show all
Defined in:
blob/lib/azure/storage/blob/block.rb

Overview

Represents a Block as part of a BlockList The type should be one of :uncommitted, :committed or :latest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Block

Returns a new instance of Block.

Yields:

  • (_self)

Yield Parameters:



34
35
36
37
# File 'blob/lib/azure/storage/blob/block.rb', line 34

def initialize
  @type = :latest
  yield self if block_given?
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



39
40
41
# File 'blob/lib/azure/storage/blob/block.rb', line 39

def name
  @name
end

#sizeObject

Returns the value of attribute size.



40
41
42
# File 'blob/lib/azure/storage/blob/block.rb', line 40

def size
  @size
end

#typeObject

Returns the value of attribute type.



41
42
43
# File 'blob/lib/azure/storage/blob/block.rb', line 41

def type
  @type
end