Class: Fog::Storage::AzureRM::Real::BlobChunk

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dataObject (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

#idObject (readonly)

For debug



8
9
10
# File 'lib/fog/azurerm/requests/storage/save_page_blob.rb', line 8

def id
  @id
end

#start_rangeObject (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_rangeObject



18
19
20
# File 'lib/fog/azurerm/requests/storage/save_page_blob.rb', line 18

def end_range
  @start_range + @data.size - 1
end