Sha256: 969dce200a6737f0edb95eea5f6f4e691519381a9d716ffec85175dab2483911
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true module NotificationPusher module DeliveryMethod class Base attr_reader :notification, :options def initialize(notification, options = {}) @notification = notification @options = options end def call raise NotImplementedError, 'Implement a `call` method that delivers the notification.' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notification-pusher-3.0.2 | lib/notification_pusher/delivery_method/base.rb |
notification-pusher-2.0.0 | lib/notification_pusher/delivery_method/base.rb |