Class: Application_Id24
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Application_Id24
- Defined in:
- lib/logstash/codecs/netflow/util.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
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 |