Sha256: 1c6624b85151e1229bc7130ff1428d8aab30f8cf9c5c4013f97266ec6fee51a7
Contents?: true
Size: 561 Bytes
Versions: 1
Compression:
Stored size: 561 Bytes
Contents
# encoding: utf-8 require 'ffi' require 'ffi-rzmq' module HoptoadZmqNotifier class Sender def send_to_hoptoad data logger.debug { "Sending request to #{@uri}:\n#{data}" } if logger socket.send_string data, ZMQ::NOBLOCK end def initialize(options = {}) [:mailbox_size, :uri].each do |option| instance_variable_set("@#{option}", options[option]) end end private def logger HoptoadNotifier.logger end def socket @socket ||= HoptoadZmqNotifier.configuration.socket end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hoptoad_zmq_notifier-0.1.1 | lib/hoptoad_zmq_notifier/sender.rb |