diff --git a/lib/postman-ruby.rb b/lib/postman-ruby.rb new file mode 100644 index 0000000..21af3f2 --- /dev/null +++ b/lib/postman-ruby.rb @@ -0,0 +1 @@ +require 'postman' diff --git a/lib/postman.rb b/lib/postman.rb new file mode 100644 index 0000000..70da925 --- /dev/null +++ b/lib/postman.rb @@ -0,0 +1,22 @@ +require 'postman/client' +require 'postman/config' + +module Postman + + def self.config + @config ||= Config.new + end + + def self.configure(&block) + block.call(config) + end + + def self.send_message(&block) + Postman::Client.instance.send_message(&block) + end + + def self.send_raw_message(&block) + Postman::Client.instance.send_raw_message(&block) + end + +end