Class: Pio::Icmp::Message

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pio/icmp/message.rb

Overview

Base class of Request, Reply, TTL Exceeded and destination unreachable.

Direct Known Subclasses

Reply, Request

Instance Method Summary collapse

Constructor Details

#initialize(user_options) ⇒ Message

Returns a new instance of Message.



35
36
37
38
# File 'lib/pio/icmp/message.rb', line 35

def initialize(user_options)
  options = self.class.const_get(:Options).new(user_options)
  @format = Icmp::Format.new(options.to_hash)
end