Class: PrologixGpib::Discovery::IPAddr

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/prologix_gpib/discovery.rb

Instance Method Summary collapse

Instance Method Details

#getObject



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