Class: Pio::OpenFlow::TransactionId
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Pio::OpenFlow::TransactionId
- Defined in:
- lib/pio/open_flow/transaction_id.rb
Overview
Transaction ID (uint32)
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
22 23 24 |
# File 'lib/pio/open_flow/transaction_id.rb', line 22 def get xid end |
#set(value) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/pio/open_flow/transaction_id.rb', line 14 def set(value) unless value.unsigned_32bit? raise(ArgumentError, 'Transaction ID should be an unsigned 32-bit integer.') end self.xid = value end |