module Ably::Rest
Rest
provides the top-level class to be instanced for the Ably
Rest
library
@example
client = Ably::Rest.new("xxxxx") channel = client.channel("test") channel.publish "greeting", "data"
Public Class Methods
Source
# File lib/ably/rest.rb, line 36 def self.new(options) Ably::Rest::Client.new(options) end
Convenience method providing an alias to {Ably::Rest::Client} constructor.
@param (see Ably::Rest::Client#initialize) @option options (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(key: 'key.id:secret', client_id: 'john')