Class: Aws::Rails::ActionMailbox::RSpec::SubscriptionConfirmation Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/rails/action_mailbox/rspec/subscription_confirmation.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(authentic: true, topic: 'topic:arn:default') ⇒ SubscriptionConfirmation

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of SubscriptionConfirmation.



9
10
11
12
# File 'lib/aws/rails/action_mailbox/rspec/subscription_confirmation.rb', line 9

def initialize(authentic: true, topic: 'topic:arn:default')
  @authentic = authentic
  @topic = topic
end

Instance Method Details

#authentic?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


30
31
32
# File 'lib/aws/rails/action_mailbox/rspec/subscription_confirmation.rb', line 30

def authentic?
  @authentic
end

#headersObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/aws/rails/action_mailbox/rspec/subscription_confirmation.rb', line 18

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

#paramsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



22
23
24
25
26
27
28
# File 'lib/aws/rails/action_mailbox/rspec/subscription_confirmation.rb', line 22

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

#urlObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
# File 'lib/aws/rails/action_mailbox/rspec/subscription_confirmation.rb', line 14

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