Class: PacketGen::Header::DHCPv6::ElapsedTime

Inherits:
Option
  • Object
show all
Defined in:
lib/packetgen/header/dhcpv6/option.rb

Overview

DHCPv6 Elapsed Time option

Author:

  • Sylvain Daubert

Since:

  • 2.5.0

Instance Attribute Summary collapse

Attributes inherited from Option

#length, #type

Instance Method Summary collapse

Methods inherited from Option

human_type, initialize, new, subclasses, to_human

Instance Attribute Details

#valueInteger

16-bit value

Returns:

  • (Integer)


266
# File 'lib/packetgen/header/dhcpv6/option.rb', line 266

define_attr :value, BinStruct::Int16

Instance Method Details

#human_dataString

Get human-readable data (value)

Returns:

  • (String)

Since:

  • 2.5.0



270
271
272
# File 'lib/packetgen/header/dhcpv6/option.rb', line 270

def human_data
  value.to_s
end