lib/submodules/ably-ruby/lib/ably/rest.rb in ably-rest-0.7.5 vs lib/submodules/ably-ruby/lib/ably/rest.rb in ably-rest-0.8.1

- old
+ new

@@ -21,23 +21,19 @@ # Convenience method providing an alias to {Ably::Rest::Client} constructor. # # @param (see Ably::Rest::Client#initialize) # @option options (see Ably::Rest::Client#initialize) # - # @yield (see Ably::Rest::Client#initialize) - # @yieldparam (see Ably::Rest::Client#initialize) - # @yieldreturn (see Ably::Rest::Client#initialize) - # # @return [Ably::Rest::Client] # # @example # # create a new client authenticating with basic auth # client = Ably::Rest.new('key.id:secret') # # # create a new client authenticating with basic auth and a client_id - # client = Ably::Rest.new(api_key: 'key.id:secret', client_id: 'john') + # client = Ably::Rest.new(key: 'key.id:secret', client_id: 'john') # - def self.new(options, &token_request_block) - Ably::Rest::Client.new(options, &token_request_block) + def self.new(options) + Ably::Rest::Client.new(options) end end end