Class: PacketGen::Header::DHCP::End

Inherits:
Types::Int8 show all
Defined in:
lib/packetgen/header/dhcp/option.rb

Overview

Class to indicate DHCP options end

Since:

  • 2.2.0

Direct Known Subclasses

Pad

Instance Attribute Summary

Attributes inherited from Types::Int

#default, #endian, #value, #width

Instance Method Summary collapse

Methods inherited from Types::Int

#format_inspect, #nbits, #read, #sz, #to_f, #to_i, #to_s

Methods included from Types::Fieldable

#format_inspect, #read, #sz, #to_s, #type_name

Constructor Details

#initialize(value = 255) ⇒ End

Returns a new instance of End.

Since:

  • 2.2.0



106
107
108
# File 'lib/packetgen/header/dhcp/option.rb', line 106

def initialize(value=255)
  super
end

Instance Method Details

#to_humanObject Also known as: human_type

Since:

  • 2.2.0



110
111
112
# File 'lib/packetgen/header/dhcp/option.rb', line 110

def to_human
  self.class.to_s.sub(/.*::/, '').downcase
end