Sha256: ab1e127b7ceca99191e77136c86ba99749099981ba312d65c7be83ef7eb66604

Contents?: true

Size: 405 Bytes

Versions: 11

Compression:

Stored size: 405 Bytes

Contents

module NotificationHandler
    class Group

        attr_accessor :name
        attr_accessor :target_scope

        def initialize name, target_scope
            @name = name
            @target_scope = target_scope
        end

        def self.find_by_name name
            NotificationHandler.configuration.groups.select { |group| group.name == name.to_sym }
        end

    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
notification-handler-1.2.5 lib/notification_handler/group.rb
notification-handler-1.2.4 lib/notification_handler/group.rb
notification-handler-1.2.3 lib/notification_handler/group.rb
notification-handler-1.2.2 lib/notification_handler/group.rb
notification-handler-1.2.1 lib/notification_handler/group.rb
notification-handler-1.2.0 lib/notification_handler/group.rb
notification-handler-1.1.2 lib/notification_handler/group.rb
notification-handler-1.1.1 lib/notification_handler/group.rb
notification-handler-1.1.0 lib/notification_handler/group.rb
notification-handler-1.0.0 lib/notification_handler/group.rb
notification-handler-1.0.0.beta11 lib/notification_handler/group.rb