Class: VarString

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/logstash/codecs/netflow/util.rb

Instance Method Summary collapse

Instance Method Details

#getObject



75
76
77
# File 'lib/logstash/codecs/netflow/util.rb', line 75

def get
  self.data
end

#set(val) ⇒ Object



71
72
73
# File 'lib/logstash/codecs/netflow/util.rb', line 71

def set(val)
  self.data = val
end

#snapshotObject



79
80
81
# File 'lib/logstash/codecs/netflow/util.rb', line 79

def snapshot
  super.encode("ASCII-8BIT", "UTF-8", invalid: :replace, undef: :replace)
end