Sha256: 99b42bae4bac56075e9009e64156b189de919320b2fb38af766dc315219c6ab5

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

module NotificationRenderer
    module NotificationLibrary

        def self.grouping group_by
            group_by{ |notification| notification.send(group_by) }
        end

        def type
            self[:type] || NotificationRenderer.configuration.default_type
        end

    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notification-renderer-1.0.0.beta8 lib/notification_renderer/notification_library.rb
notification-renderer-1.0.0.beta7 lib/notification_renderer/notification_library.rb