Sha256: ad5c743bdc62797ec9eafddaca7bd672466cc79e8648a3aaae0ff0ea226174f5
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true module Pio module OpenFlow10 # enum ofp_stats_types class StatsType < BinData::Primitive STATS_TYPES = { description: 0, flow: 1, aggregate: 2, table: 3, port: 4, queue: 5, vendor: 0xffff }.freeze endian :big uint16 :command def get STATS_TYPES.invert.fetch(command) end def set(value) self.command = STATS_TYPES.fetch(value) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.2 | lib/pio/open_flow10/stats_type.rb |