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



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

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

#set(val) ⇒ Object



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

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