Class: Fog::Storage::AzureRM::Real::BlobChunk
- Inherits:
-
Object
- Object
- Fog::Storage::AzureRM::Real::BlobChunk
- Defined in:
- lib/fog/azurerm/requests/storage/save_page_blob.rb
Overview
This class is used to store chunk data for page blob before uploading.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
For debug.
-
#start_range ⇒ Object
readonly
Returns the value of attribute start_range.
Instance Method Summary collapse
- #end_range ⇒ Object
-
#initialize(id, start_range, data) ⇒ BlobChunk
constructor
A new instance of BlobChunk.
Constructor Details
#initialize(id, start_range, data) ⇒ BlobChunk
Returns a new instance of BlobChunk.
12 13 14 15 16 |
# File 'lib/fog/azurerm/requests/storage/save_page_blob.rb', line 12 def initialize(id, start_range, data) @id = id @start_range = start_range @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/fog/azurerm/requests/storage/save_page_blob.rb', line 10 def data @data end |
#id ⇒ Object (readonly)
For debug
8 9 10 |
# File 'lib/fog/azurerm/requests/storage/save_page_blob.rb', line 8 def id @id end |
#start_range ⇒ Object (readonly)
Returns the value of attribute start_range.
9 10 11 |
# File 'lib/fog/azurerm/requests/storage/save_page_blob.rb', line 9 def start_range @start_range end |
Instance Method Details
#end_range ⇒ Object
18 19 20 |
# File 'lib/fog/azurerm/requests/storage/save_page_blob.rb', line 18 def end_range @start_range + @data.size - 1 end |