Class: PacketGen::Header::DHCP::End
- Inherits:
-
Types::Int8
- Object
- Types::Int
- Types::Int8
- PacketGen::Header::DHCP::End
- Defined in:
- lib/packetgen/header/dhcp/option.rb
Overview
Class to indicate DHCP options end
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Types::Int
#default, #endian, #value, #width
Instance Method Summary collapse
-
#initialize(value = 255) ⇒ End
constructor
A new instance of End.
- #to_human ⇒ Object (also: #human_type)
Methods inherited from Types::Int
#read, #sz, #to_f, #to_i, #to_s
Constructor Details
#initialize(value = 255) ⇒ End
Returns a new instance of End.
61 62 63 |
# File 'lib/packetgen/header/dhcp/option.rb', line 61 def initialize(value=255) super end |
Instance Method Details
#to_human ⇒ Object Also known as: human_type
65 66 67 |
# File 'lib/packetgen/header/dhcp/option.rb', line 65 def to_human self.class.to_s.sub(/.*::/, '').downcase end |