Sha256: f66671d70bb4fbeb5bc55237e6e9f4406e84bcb8484ef68911a7821843b6d9dc

Contents?: true

Size: 424 Bytes

Versions: 31

Compression:

Stored size: 424 Bytes

Contents

require 'pio/arp/format'

module Pio
  class Arp
    # Base class of ARP Request and Reply
    class Message
      private_class_method :new

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

      def method_missing(method, *args)
        @format.__send__ method, *args
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
pio-0.30.0 lib/pio/arp/message.rb
pio-0.29.0 lib/pio/arp/message.rb
pio-0.28.1 lib/pio/arp/message.rb
pio-0.28.0 lib/pio/arp/message.rb
pio-0.27.2 lib/pio/arp/message.rb
pio-0.27.1 lib/pio/arp/message.rb
pio-0.27.0 lib/pio/arp/message.rb
pio-0.26.0 lib/pio/arp/message.rb
pio-0.25.0 lib/pio/arp/message.rb
pio-0.24.2 lib/pio/arp/message.rb
pio-0.24.1 lib/pio/arp/message.rb
pio-0.24.0 lib/pio/arp/message.rb
pio-0.23.1 lib/pio/arp/message.rb
pio-0.23.0 lib/pio/arp/message.rb
pio-0.22.0 lib/pio/arp/message.rb
pio-0.21.1 lib/pio/arp/message.rb
pio-0.21.0 lib/pio/arp/message.rb
pio-0.20.1 lib/pio/arp/message.rb
pio-0.20.0 lib/pio/arp/message.rb
pio-0.19.0 lib/pio/arp/message.rb