Class: Application_Id72

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

Instance Method Summary collapse

Instance Method Details

#getObject



226
227
228
# File 'lib/logstash/codecs/netflow/util.rb', line 226

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

#set(val) ⇒ Object



219
220
221
222
223
224
# File 'lib/logstash/codecs/netflow/util.rb', line 219

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