Class: Azure::Storage::Blob::Block
- Inherits:
-
Object
- Object
- Azure::Storage::Blob::Block
- 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
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Block
constructor
A new instance of Block.
Constructor Details
#initialize {|_self| ... } ⇒ Block
Returns a new instance of Block.
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
#name ⇒ Object
Returns the value of attribute name.
39 40 41 |
# File 'blob/lib/azure/storage/blob/block.rb', line 39 def name @name end |
#size ⇒ Object
Returns the value of attribute size.
40 41 42 |
# File 'blob/lib/azure/storage/blob/block.rb', line 40 def size @size end |
#type ⇒ Object
Returns the value of attribute type.
41 42 43 |
# File 'blob/lib/azure/storage/blob/block.rb', line 41 def type @type end |