Sha256: fccd9907495a30ffd1817f1b5f9444ba218f3b3067c1c5b0301ed23d45c0f775
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
module Pio module OpenFlow # OpenFlow version class Version < BinData::Primitive VERSIONS = { 1 => :OpenFlow10, 4 => :OpenFlow13 }.freeze uint8 :version def get VERSIONS.fetch(version) end def set(value) self.version = VERSIONS.invert.fetch(value) end def to_bytes version.to_hex end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.1 | lib/pio/open_flow/version.rb |