Module: Pusher

Extended by:
Forwardable
Defined in:
lib/pusher.rb,
lib/pusher/client.rb,
lib/pusher/request.rb,
lib/pusher/webhook.rb,
lib/pusher/channel.rb,
lib/pusher/resource.rb

Overview

Used for configuring API credentials and creating Channel objects

Defined Under Namespace

Classes: AuthenticationError, Channel, Client, ConfigurationError, Error, HTTPError, Request, Resource, WebHook

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



39
40
41
42
43
44
45
# File 'lib/pusher.rb', line 39

def logger
  @logger ||= begin
    log = Logger.new($stdout)
    log.level = Logger::INFO
    log
  end
end

Class Method Details

.default_clientObject



47
48
49
# File 'lib/pusher.rb', line 47

def default_client
  @default_client ||= Pusher::Client.new
end