Class: PacketGen::Header::DHCPv6::Preference
- Inherits:
-
Option
- Object
- Types::Fields
- Option
- PacketGen::Header::DHCPv6::Preference
- Defined in:
- lib/packetgen/header/dhcpv6/option.rb
Overview
DHCPv6 Preference option
Constant Summary collapse
- TYPE =
Option type value
7
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, #read, subclasses, #to_human
Methods inherited from Types::Fields
#[], #[]=, #body=, define_bit_fields_on, define_field, define_field_after, define_field_before, delete_field, #fields, #force_binary, inherited, #initialize, #inspect, #is_optional?, #is_present?, #optional_fields, #read, #sz, #to_h, #to_s
Constructor Details
This class inherits a constructor from PacketGen::Header::DHCPv6::Option
Instance Attribute Details
#value ⇒ Integer
8-bit value
307 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 307 define_field :value, Types::Int8 |
Instance Method Details
#human_data ⇒ String
Get human-readable data (value)
311 312 313 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 311 def human_data value.to_s end |