Sha256: 945ed6c41f9b0622065922c05c5d8ac52e5bdfeee9fb7f5a48d7ffd4d9505b02

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

module NotificationPusher
  class << self
    attr_accessor :configuration
  end

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

  class Configuration
    attr_accessor :pushers

    def initialize
      @pushers = []
    end

    def define_pusher(name, options = {})
      pushers << ::NotificationPusher::Pusher.new(name, options)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notification-pusher-1.2.6 lib/notification_pusher/configuration.rb