Class: Application_Id40

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

Instance Method Summary collapse

Instance Method Details

#getObject



195
196
197
# File 'lib/logstash/codecs/netflow/util.rb', line 195

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

#set(val) ⇒ Object



188
189
190
191
192
193
# File 'lib/logstash/codecs/netflow/util.rb', line 188

def set(val)
  unless val.nil?
    self.classification_id=val.to_i<<32
    self.selector_id = val.to_i-((val.to_i>>32)<<32)
  end
end