Class: Fluent::TextParser::NetflowParser::MacAddr
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Fluent::TextParser::NetflowParser::MacAddr
- Defined in:
- lib/fluent/plugin/parser_netflow.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
289 290 291 |
# File 'lib/fluent/plugin/parser_netflow.rb', line 289 def get self.bytes.collect { |byte| byte.value.to_s(16).rjust(2,'0') }.join(":") end |
#set(val) ⇒ Object
284 285 286 287 |
# File 'lib/fluent/plugin/parser_netflow.rb', line 284 def set(val) ints = val.split(/:/).collect { |int| int.to_i(16) } self.bytes = ints end |