Module: Pusher

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

Overview

Used for configuring API credentials and creating Channel objects

Defined Under Namespace

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

Constant Summary collapse

VERSION =
'1.3.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



46
47
48
49
50
51
52
# File 'lib/pusher.rb', line 46

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

Class Method Details

.default_clientObject



54
55
56
57
58
59
# File 'lib/pusher.rb', line 54

def default_client
  @default_client ||= begin
    cli = Pusher::Client
    ENV['PUSHER_URL'] ? cli.from_env : cli.new
  end
end