Class: VhdxBatEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/disk/modules/vhdx_bat_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block, state, offset) ⇒ VhdxBatEntry

Returns a new instance of VhdxBatEntry.



5
6
7
8
9
# File 'lib/disk/modules/vhdx_bat_entry.rb', line 5

def initialize(block, state, offset)
  @block  = block - 1
  @state  = state
  @offset = offset
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



4
5
6
# File 'lib/disk/modules/vhdx_bat_entry.rb', line 4

def block
  @block
end

#offsetObject (readonly)

Returns the value of attribute offset.



4
5
6
# File 'lib/disk/modules/vhdx_bat_entry.rb', line 4

def offset
  @offset
end

#stateObject (readonly)

Returns the value of attribute state.



4
5
6
# File 'lib/disk/modules/vhdx_bat_entry.rb', line 4

def state
  @state
end