Class: VarString

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

Instance Method Summary collapse

Instance Method Details

#getObject



89
90
91
# File 'lib/logstash/codecs/netflow/util.rb', line 89

def get
  self.data
end

#set(val) ⇒ Object



85
86
87
# File 'lib/logstash/codecs/netflow/util.rb', line 85

def set(val)
  self.data = val
end

#snapshotObject



93
94
95
# File 'lib/logstash/codecs/netflow/util.rb', line 93

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