Sha256: c3335049d80615bed22344d4d7251bd46944814037db44c0c0b0ac83dff52941

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

module Pione
  module Front
    module NotificationRecipientInterface
      def set_recipient(recipient)
        @__recipient__ = recipient
      end

      # Notify the notification message to the recipient. This method is
      # non-blocking.
      #
      # @param message [Notification::Message]
      #   notification message
      # @return [void]
      def notify(message)
        non_blocking {@__recipient__.notify(message)}
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pione-0.5.0 lib/pione/front/notification-recipient-interface.rb
pione-0.5.0.alpha.2 lib/pione/front/notification-recipient-interface.rb
pione-0.5.0.alpha.1 lib/pione/front/notification-recipient-interface.rb
pione-0.4.2 lib/pione/front/notification-recipient-interface.rb
pione-0.4.1 lib/pione/front/notification-recipient-interface.rb
pione-0.4.0 lib/pione/front/notification-recipient-interface.rb