class XBee::Frames::UnidentifiedAddressedFrame
Attributes
address16[RW]
address64[RW]
Public Class Methods
new(packet: nil)
click to toggle source
Calls superclass method
XBee::Frames::Frame::new
# File lib/xbee/frames/unidentified_addressed_frame.rb, line 11 def initialize(packet: nil) super if @parse_bytes @address64 = Address64.new *@parse_bytes.shift(8) @address16 = Address16.new *@parse_bytes.shift(2) end end
Public Instance Methods
bytes()
click to toggle source
Calls superclass method
XBee::Frames::Frame#bytes
# File lib/xbee/frames/unidentified_addressed_frame.rb, line 21 def bytes super + (address64 || Address64.from_array([0] * 8)).to_a + (address16 || Address16.new(0, 0)).to_a end