Sha256: 39f700ee885681adfb2b615857167cfad4bad0911df0458d6e6a0a768e30a260

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 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
            ObjectSpace.each_object(NotificationHandler::Group).select { |group| group.name == name.to_sym }
        end

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notification-handler-1.0.0.beta10 lib/notification_handler/group.rb