Class: Azure::Blob::Block
- Inherits:
-
Object
- Object
- Azure::Blob::Block
- 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
-
#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.
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
#name ⇒ Object
Returns the value of attribute name.
26 27 28 |
# File 'lib/azure/blob/block.rb', line 26 def name @name end |
#size ⇒ Object
Returns the value of attribute size.
27 28 29 |
# File 'lib/azure/blob/block.rb', line 27 def size @size end |
#type ⇒ Object
Returns the value of attribute type.
28 29 30 |
# File 'lib/azure/blob/block.rb', line 28 def type @type end |