From 276ce41784dc5a299ddd2183345bc57aed3dad96 Mon Sep 17 00:00:00 2001 From: nikkel Date: Fri, 20 Mar 2020 02:23:46 +0700 Subject: [PATCH] Upload files to 'lib' --- lib/postman-ruby.rb | 1 + lib/postman.rb | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 lib/postman-ruby.rb create mode 100644 lib/postman.rb 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