Class: Fog::Storage::AzureRM::Real::BlockChunk

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb

Overview

This class is used to store chunk data for block blob before uploading.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, block_id, data) ⇒ BlockChunk

Returns a new instance of BlockChunk.



12
13
14
15
16
# File 'lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb', line 12

def initialize(id, block_id, data)
  @id = id
  @block_id = block_id
  @data = data
end

Instance Attribute Details

#block_idObject (readonly)

Returns the value of attribute block_id.



9
10
11
# File 'lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb', line 9

def block_id
  @block_id
end

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb', line 10

def data
  @data
end

#idObject (readonly)

For debug



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

def id
  @id
end