Class: VhdxBatEntry
- Inherits:
-
Object
- Object
- VhdxBatEntry
- Defined in:
- lib/disk/modules/vhdx_bat_entry.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(block, state, offset) ⇒ VhdxBatEntry
constructor
A new instance of VhdxBatEntry.
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
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/disk/modules/vhdx_bat_entry.rb', line 4 def block @block end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
4 5 6 |
# File 'lib/disk/modules/vhdx_bat_entry.rb', line 4 def offset @offset end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
4 5 6 |
# File 'lib/disk/modules/vhdx_bat_entry.rb', line 4 def state @state end |