Class: Interlnk::Packet::BpbAnswer

Inherits:
Object
  • Object
show all
Defined in:
lib/interlnk/packet/bpb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bpbObject

Returns the value of attribute bpb.



21
22
23
# File 'lib/interlnk/packet/bpb.rb', line 21

def bpb
  @bpb
end

#driver_statusObject

Returns the value of attribute driver_status.



21
22
23
# File 'lib/interlnk/packet/bpb.rb', line 21

def driver_status
  @driver_status
end