Sha256: 27a17b2ed433d93867045ec15e19ffb797667245d3560d2600643b5eecde3017

Contents?: true

Size: 803 Bytes

Versions: 1

Compression:

Stored size: 803 Bytes

Contents

# frozen_string_literal: true

module Aws
  module ActionMailbox
    module SES
      module RSpec
        # @api private
        class SubscriptionConfirmation
          def initialize(authentic: true, topic: 'topic:arn:default')
            @authentic = authentic
            @topic = topic
          end

          def url
            '/rails/action_mailbox/ses/inbound_emails'
          end

          def headers
            { 'content-type' => 'application/json' }
          end

          def params
            {
              'Type' => 'SubscriptionConfirmation',
              'TopicArn' => @topic,
              'SubscribeURL' => 'http://example.com/subscribe'
            }
          end

          def authentic?
            @authentic
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-actionmailbox-ses-0.1.0 lib/aws/action_mailbox/ses/rspec/subscription_confirmation.rb