Sha256: c08aa1f0902c082f04cdc1b32ba2fd6df7764177bb4e47c611beba1e0231944c

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

module NotificationPusher
    class Pusher

        attr_accessor :name
        attr_accessor :options
        attr_accessor :instances

        def initialize name, options = {}
            @instances = []
            @name = name
            @options = options
        end

        def find_by_name name
            ObjectSpace.each_object(NotificationPusher::Pusher).select { |pusher| pusher.name == name }
        end

    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notification-pusher-1.0.0.beta9 lib/notification_pusher/pusher.rb
notification-pusher-1.0.0.beta8 lib/notification_pusher/pusher.rb
notification-pusher-1.0.0.beta7 lib/notification_pusher/pusher.rb