Class: Pio::Dhcp::Message
- Inherits:
-
Object
- Object
- Pio::Dhcp::Message
- Extended by:
- Forwardable
- Defined in:
- lib/pio/dhcp/message.rb
Overview
Base class of Dhcp Packet Generator and Parser.
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #const_type ⇒ Object
-
#initialize(user_options) ⇒ Message
constructor
A new instance of Message.
- #options_klass ⇒ Object
Constructor Details
Class Method Details
.create_from(frame) ⇒ Object
58 59 60 61 62 |
# File 'lib/pio/dhcp/message.rb', line 58 def self.create_from(frame) = allocate .instance_variable_set :@frame, frame end |
Instance Method Details
#const_type ⇒ Object
70 71 72 |
# File 'lib/pio/dhcp/message.rb', line 70 def const_type self.class::TYPE end |
#options_klass ⇒ Object
74 75 76 |
# File 'lib/pio/dhcp/message.rb', line 74 def self.class.const_get(:Options) end |