Class: PacketGen::Header::DHCPv6::Preference
- Defined in:
- lib/packetgen/header/dhcpv6/option.rb
Overview
DHCPv6 Preference option
Instance Attribute Summary collapse
-
#value ⇒ Integer
8-bit value.
Attributes inherited from Option
Instance Method Summary collapse
-
#human_data ⇒ String
Get human-readable data (value).
Methods inherited from Option
human_type, initialize, new, subclasses, to_human
Instance Attribute Details
#value ⇒ Integer
8-bit value
248 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 248 define_attr :value, BinStruct::Int8 |
Instance Method Details
#human_data ⇒ String
Get human-readable data (value)
252 253 254 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 252 def human_data value.to_s end |