Module: Onesignal

Extended by:
Forwardable
Defined in:
lib/onesignal.rb,
lib/onesignal/client.rb,
lib/onesignal/result.rb,
lib/onesignal/version.rb,
lib/onesignal/gateway.rb,
lib/onesignal/device_creation_result.rb,
lib/onesignal/notification_creation_result.rb

Overview

The Onesignal module provides access to all the main operations

Defined Under Namespace

Classes: Client, Configuration, DeviceCreationResult, Gateway, NotificationCreationResult, Result

Constant Summary collapse

VERSION =
'0.0.1'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationConfiguration


10
11
12
# File 'lib/onesignal.rb', line 10

def configuration
  @configuration
end

Class Method Details

.clientClient


22
23
24
# File 'lib/onesignal.rb', line 22

def self.client
  Onesignal::Client.new
end

.configure {|configuration| ... } ⇒ Configuration

Returns The configuration singleton

Yields:


27
28
29
30
# File 'lib/onesignal.rb', line 27

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end