lib/pubnub.rb in pubnub-3.8.5 vs lib/pubnub.rb in pubnub-4.0.0beta1
- old
+ new
@@ -5,10 +5,11 @@
require 'openssl'
require 'celluloid/current'
require 'timers'
require 'httpclient'
require 'logger'
+require 'dry-validation'
require 'pubnub/version'
require 'pubnub/client'
# Adding blank? and present? methods to Object.
@@ -25,10 +26,9 @@
# Toplevel Pubnub module.
module Pubnub
class << self
attr_accessor :logger, :client
- # TODO: docs
def new(options = {})
Pubnub::Client.new(options)
end
end
end