class SSDP::SsdpHandler

Public Class Methods

new(func = nil) click to toggle source
# File lib/ssdp.rb, line 65
def initialize(func = nil)
  @func = func
end

Public Instance Methods

on_ssdp_header(ssdp_header) click to toggle source
# File lib/ssdp.rb, line 69
def on_ssdp_header(ssdp_header)
  if @func
    return @func.(ssdp_header)
  end
end