Sha256: eedaf7df8ebf9034024957af8ca54af9b1261032ea4def1e7ac73a72cb7c210f

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Tikkie
  module Notifications
    # Bundle notification.
    class BundleNotification
      NOTIFICATION_TYPE = "BUNDLE"

      attr_reader :body

      def initialize(body)
        @body = body
      end

      def subscription_id
        body[:subscriptionId]
      end

      def notification_type
        body[:notificationType]
      end

      def bundle_id
        body[:bundleId]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tikkie-api-2.0.0 lib/tikkie/notifications/bundle_notification.rb