Class: Application_Id32

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

Instance Method Summary collapse

Instance Method Details

#getObject



177
178
179
# File 'lib/logstash/codecs/netflow/util.rb', line 177

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

#set(val) ⇒ Object



170
171
172
173
174
175
# File 'lib/logstash/codecs/netflow/util.rb', line 170

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