lib/notification_handler/group.rb in notification-handler-1.2.5 vs lib/notification_handler/group.rb in notification-handler-1.2.6

- old
+ new

@@ -1,17 +1,19 @@ -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 +# 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