Class: MacAddr
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- MacAddr
- Defined in:
- lib/logstash/codecs/IPFIX/util.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
49 50 51 |
# File 'lib/logstash/codecs/IPFIX/util.rb', line 49 def get self.bytes.collect { |byte| byte.to_s(16) }.join(":") end |
#set(val) ⇒ Object
44 45 46 47 |
# File 'lib/logstash/codecs/IPFIX/util.rb', line 44 def set(val) ints = val.split(/:/).collect { |int| int.to_i(16) } self.bytes = ints end |