Class: PacketGen::Header::DHCPv6::ElapsedTime
- Inherits:
-
Option
- Object
- Types::Fields
- Option
- PacketGen::Header::DHCPv6::ElapsedTime
- Defined in:
- lib/packetgen/header/dhcpv6/option.rb
Overview
DHCPv6 Elapsed Time option
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Integer
16-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
Methods inherited from Types::Fields
#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field
Constructor Details
This class inherits a constructor from PacketGen::Header::DHCPv6::Option
Instance Attribute Details
#value ⇒ Integer
16-bit value
279 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 279 define_field :value, Types::Int16 |
Instance Method Details
#human_data ⇒ String
Get human-readable data (value)
283 284 285 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 283 def human_data value.to_s end |