class Fluent::Plugin::NetflowParser::MacAddr
Public Instance Methods
get()
click to toggle source
# File lib/fluent/plugin/netflow_records.rb, line 50 def get self.bytes.collect { |byte| byte.value.to_s(16).rjust(2,'0') }.join(":") end
set(val)
click to toggle source
# File lib/fluent/plugin/netflow_records.rb, line 45 def set(val) ints = val.split(/:/).collect { |int| int.to_i(16) } self.bytes = ints end