lib/caerbannog.rb in caerbannog-0.1.0 vs lib/caerbannog.rb in caerbannog-0.2.0

- old
+ new

@@ -1,7 +1,19 @@ -require "bundler/setup" -require "bunny" +require 'bundler/setup' +require 'bunny' require 'json' -require "caerbannog/version" -require "caerbannog/message_poller" -require "caerbannog/queue" +require 'caerbannog/version' +require 'caerbannog/message_poller' +require 'caerbannog/queue' + +module Caerbannog + class ConfigurationError < StandardError; end + + class << self + attr_accessor :message_class, :rabbit_read_url, :rabbit_write_url + + def configure + yield self + end + end +end