Class: Application_Id64

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

Instance Method Summary collapse

Instance Method Details

#getObject



209
210
211
# File 'lib/logstash/codecs/netflow/util.rb', line 209

def get
  self.classification_id.to_s + ":" + self.selector_id.to_s
end

#set(val) ⇒ Object



202
203
204
205
206
207
# File 'lib/logstash/codecs/netflow/util.rb', line 202

def set(val)
  unless val.nil?
    self.classification_id=val.to_i<<56
    self.selector_id = val.to_i-((val.to_i>>56)<<56)
  end
end