Class: XBee::Address

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/xbee/address.rb

Direct Known Subclasses

Address16, Address64

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



8
9
10
# File 'lib/xbee/address.rb', line 8

def <=>(other)
	to_a <=> other.to_a
end

#==(other) ⇒ Object



13
14
15
# File 'lib/xbee/address.rb', line 13

def ==(other)
	to_a == other.to_a
end

#to_aObject



18
19
20
# File 'lib/xbee/address.rb', line 18

def to_a
	@bytes
end