Sha256: c8f3629307bc617d48cbb036ded03243de79a876b0ed2f25b368508316b6b190
Contents?: true
Size: 899 Bytes
Versions: 5
Compression:
Stored size: 899 Bytes
Contents
## www.pubnub.com - PubNub realtime push service in the cloud. ## http://www.pubnub.com/blog/ruby-push-api - Ruby Push API Blog ## PubNub Real Time Push APIs and Notifications Framework ## Copyright (c) 2014 PubNub ## http://www.pubnub.com/ ## ----------------------------------- ## PubNub 3.5.1 Real-time Push Cloud API ## ----------------------------------- require 'json' require 'base64' require 'open-uri' require 'openssl' require 'eventmachine' require 'net/http/persistent' require 'logger' require 'version' require 'pubnub/client' class Object def blank? respond_to?(:empty?) ? empty? : !self end def present? !blank? end end class Proc def try(*a, &b) if a.empty? && block_given? yield self else __send__(*a, &b) end end end module Pubnub class << self def new(options = {}) Pubnub::Client.new(options) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pubnub-3.5.7 | lib/pubnub.rb |
pubnub-3.5.6 | lib/pubnub.rb |
pubnub-3.5.5 | lib/pubnub.rb |
pubnub-3.5.3 | lib/pubnub.rb |
pubnub-3.5.1 | lib/pubnub.rb |