Class: Azure::Blob::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/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:



21
22
23
24
# File 'lib/azure/blob/block.rb', line 21

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



26
27
28
# File 'lib/azure/blob/block.rb', line 26

def name
  @name
end

#sizeObject

Returns the value of attribute size.



27
28
29
# File 'lib/azure/blob/block.rb', line 27

def size
  @size
end

#typeObject

Returns the value of attribute type.



28
29
30
# File 'lib/azure/blob/block.rb', line 28

def type
  @type
end