Class: Application_Id16

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

Instance Method Summary collapse

Instance Method Details

#getObject



141
142
143
# File 'lib/logstash/codecs/netflow/util.rb', line 141

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

#set(val) ⇒ Object



134
135
136
137
138
139
# File 'lib/logstash/codecs/netflow/util.rb', line 134

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