Class: Interlnk::Packet::BpbAnswer
- Inherits:
-
Object
- Object
- Interlnk::Packet::BpbAnswer
- Defined in:
- lib/interlnk/packet/bpb.rb
Instance Attribute Summary collapse
-
#bpb ⇒ Object
Returns the value of attribute bpb.
-
#driver_status ⇒ Object
Returns the value of attribute driver_status.
Instance Method Summary collapse
-
#initialize(data) ⇒ BpbAnswer
constructor
A new instance of BpbAnswer.
Constructor Details
#initialize(data) ⇒ BpbAnswer
Returns a new instance of BpbAnswer.
23 24 25 26 27 |
# File 'lib/interlnk/packet/bpb.rb', line 23 def initialize(data) ( @driver_status, @bpb ) = data.unpack('va*') end |
Instance Attribute Details
#bpb ⇒ Object
Returns the value of attribute bpb.
21 22 23 |
# File 'lib/interlnk/packet/bpb.rb', line 21 def bpb @bpb end |
#driver_status ⇒ Object
Returns the value of attribute driver_status.
21 22 23 |
# File 'lib/interlnk/packet/bpb.rb', line 21 def driver_status @driver_status end |