class XBee::Frames::IdentifiedFrame
The base class for frames that have an ID for tracking the radio's processing.
Attributes
id[RW]
Public Class Methods
new(packet: nil)
click to toggle source
Calls superclass method
XBee::Frames::Frame::new
# File lib/xbee/frames/identified_frame.rb, line 10 def initialize(packet: nil) super if @parse_bytes @id = @parse_bytes.shift end end
Public Instance Methods
bytes()
click to toggle source
Calls superclass method
XBee::Frames::Frame#bytes
# File lib/xbee/frames/identified_frame.rb, line 19 def bytes super + [(id || 0x00)] end