Sha256: c299f2e2bf775c8510e71900cd4ef1769661b6d99f3b553ab4847d66e0a8ab2b
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true 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 do |group| group.name == name.to_sym end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notification-handler-1.2.6 | lib/notification_handler/group.rb |