Class: Pio::Lldp::OptionalTlv
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Pio::Lldp::OptionalTlv
- Defined in:
- lib/pio/lldp/optional_tlv.rb
Overview
Optional TLV and End Of LLDPDU
Instance Method Summary collapse
Instance Method Details
#chooser ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/pio/lldp/optional_tlv.rb', line 37 def chooser if valid_optional_tlv? tlv_type else 'unknown' end end |
#end_of_lldpdu? ⇒ Boolean
33 34 35 |
# File 'lib/pio/lldp/optional_tlv.rb', line 33 def end_of_lldpdu? tlv_type == 0 end |