Class: SlowFat::ExtendedBiosParameterBlock
- Inherits:
-
Object
- Object
- SlowFat::ExtendedBiosParameterBlock
- Defined in:
- lib/slowfat/bootsect.rb
Overview
ExtendedBiosParameterBlock holds information from an EBPB.
Instance Attribute Summary collapse
-
#boot_signature ⇒ Object
readonly
Returns the value of attribute boot_signature.
-
#fs_type ⇒ Object
readonly
Returns the value of attribute fs_type.
-
#physical_drive_nbr ⇒ Object
readonly
Returns the value of attribute physical_drive_nbr.
-
#volume_label ⇒ Object
readonly
Returns the value of attribute volume_label.
-
#volume_serial ⇒ Object
readonly
Returns the value of attribute volume_serial.
Instance Method Summary collapse
-
#initialize(data) ⇒ ExtendedBiosParameterBlock
constructor
A new instance of ExtendedBiosParameterBlock.
Constructor Details
#initialize(data) ⇒ ExtendedBiosParameterBlock
Returns a new instance of ExtendedBiosParameterBlock.
69 70 71 |
# File 'lib/slowfat/bootsect.rb', line 69 def initialize(data) (@physical_drive_nbr, @flags, @boot_signature, @volume_serial, @volume_label, @fs_type) = data.unpack('CCCVa11a8') end |
Instance Attribute Details
#boot_signature ⇒ Object (readonly)
Returns the value of attribute boot_signature.
67 68 69 |
# File 'lib/slowfat/bootsect.rb', line 67 def boot_signature @boot_signature end |
#fs_type ⇒ Object (readonly)
Returns the value of attribute fs_type.
67 68 69 |
# File 'lib/slowfat/bootsect.rb', line 67 def fs_type @fs_type end |
#physical_drive_nbr ⇒ Object (readonly)
Returns the value of attribute physical_drive_nbr.
67 68 69 |
# File 'lib/slowfat/bootsect.rb', line 67 def physical_drive_nbr @physical_drive_nbr end |
#volume_label ⇒ Object (readonly)
Returns the value of attribute volume_label.
67 68 69 |
# File 'lib/slowfat/bootsect.rb', line 67 def volume_label @volume_label end |
#volume_serial ⇒ Object (readonly)
Returns the value of attribute volume_serial.
67 68 69 |
# File 'lib/slowfat/bootsect.rb', line 67 def volume_serial @volume_serial end |