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


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

def initialize(value=255)
  super
end

Instance Method Details

#to_humanObject Also known as: human_type

Since:

  • 2.2.0


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

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