Sha256: 579296b6826338a807775f3addab1950034f738699fe9c62fdd1df8a5f98307f

Contents?: true

Size: 492 Bytes

Versions: 11

Compression:

Stored size: 492 Bytes

Contents

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 = {}
            self.pushers << ::NotificationPusher::Pusher.new(name, options)
        end

    end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
notification-pusher-1.2.5 lib/notification_pusher/configuration.rb
notification-pusher-1.2.4 lib/notification_pusher/configuration.rb
notification-pusher-1.2.3 lib/notification_pusher/configuration.rb
notification-pusher-1.2.2 lib/notification_pusher/configuration.rb
notification-pusher-1.2.1 lib/notification_pusher/configuration.rb
notification-pusher-1.2.0 lib/notification_pusher/configuration.rb
notification-pusher-1.1.2 lib/notification_pusher/configuration.rb
notification-pusher-1.1.1 lib/notification_pusher/configuration.rb
notification-pusher-1.1.0 lib/notification_pusher/configuration.rb
notification-pusher-1.0.0 lib/notification_pusher/configuration.rb
notification-pusher-1.0.0.beta11 lib/notification_pusher/configuration.rb