Class: Pio::Icmp::Message
- Inherits:
-
Object
- Object
- Pio::Icmp::Message
- Extended by:
- Forwardable
- Defined in:
- lib/pio/icmp/message.rb
Overview
Base class of Request, Reply, TTL Exceeded and destination unreachable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user_options) ⇒ Message
constructor
A new instance of Message.
Constructor Details
permalink #initialize(user_options) ⇒ Message
Returns a new instance of Message.
43 44 45 46 |
# File 'lib/pio/icmp/message.rb', line 43 def initialize() = self.class.const_get(:Options).new() @frame = Icmp::Format.new(.to_hash) end |
Class Method Details
permalink .create_from(frame) ⇒ Object
[View source]
35 36 37 38 39 |
# File 'lib/pio/icmp/message.rb', line 35 def self.create_from(frame) = allocate .instance_variable_set :@frame, frame end |