Class: PrologixGpib::Discovery::MacAddr
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- PrologixGpib::Discovery::MacAddr
- Defined in:
- lib/prologix_gpib/discovery.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
33 34 35 |
# File 'lib/prologix_gpib/discovery.rb', line 33 def get self.octets.map { |octet| '%02x' % octet }.join(':') end |
#set(val) ⇒ Object
29 30 31 |
# File 'lib/prologix_gpib/discovery.rb', line 29 def set(val) self.octets = val.split(/:/).map(&:hex) end |