Class: Pio::Lldp::TtlTlv
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Pio::Lldp::TtlTlv
- Defined in:
- lib/pio/lldp/ttl_tlv.rb
Overview
Time to live TLV
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
15 16 17 |
# File 'lib/pio/lldp/ttl_tlv.rb', line 15 def get BinData::Int16be.read(ttl) end |
#set(value) ⇒ Object
19 20 21 |
# File 'lib/pio/lldp/ttl_tlv.rb', line 19 def set(value) self.ttl = BinData::Int16be.new(value).to_binary_s end |