Sha256: 1a5a344cb37412464cbeab7088a0f74bf4eb18369acddc206d3ee9b5413d5407
Contents?: true
Size: 899 Bytes
Versions: 4
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 Real-time Push Cloud API ## ----------------------------------- require 'json' require 'base64' require 'open-uri' require 'openssl' require 'eventmachine' require 'net/http/persistent' require 'logger' require 'pubnub/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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pubnub-3.7.0 | lib/pubnub.rb |
pubnub-3.6.10 | lib/pubnub.rb |
pubnub-3.6.9 | lib/pubnub.rb |
pubnub-3.6.7 | lib/pubnub.rb |