Class: PrologixGpib::Discovery::IPAddr
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- PrologixGpib::Discovery::IPAddr
- Defined in:
- lib/prologix_gpib/discovery.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
21 22 23 |
# File 'lib/prologix_gpib/discovery.rb', line 21 def get self.octets.map(&:to_s).join('.') end |
#set(val) ⇒ Object
17 18 19 |
# File 'lib/prologix_gpib/discovery.rb', line 17 def set(val) self.octets = val.split(/\./).map(&:to_i) end |