Class: Application_Id24

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

Instance Method Summary collapse

Instance Method Details

#getObject



158
159
160
# File 'lib/logstash/codecs/netflow/util.rb', line 158

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

#set(val) ⇒ Object



151
152
153
154
155
156
# File 'lib/logstash/codecs/netflow/util.rb', line 151

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