Sha256: fdbb757e33232e31d67df2537df1ea6747c6d8b282c9f3e0ee9b8e9abf2ecb76
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
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.1 | lib/pio/open_flow10/stats_type.rb |