Class: Application_Id32
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Application_Id32
- Defined in:
- lib/logstash/codecs/netflow/util.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
175 176 177 |
# File 'lib/logstash/codecs/netflow/util.rb', line 175 def get self.classification_id.to_s + ":" + self.selector_id.to_s end |
#set(val) ⇒ Object
168 169 170 171 172 173 |
# File 'lib/logstash/codecs/netflow/util.rb', line 168 def set(val) unless val.nil? self.classification_id=val.to_i<<24 self.selector_id = val.to_i-((val.to_i>>24)<<24) end end |