Class: Aws::Rails::ActionMailbox::RSpec::Email Private
- Inherits:
-
Object
- Object
- Aws::Rails::ActionMailbox::RSpec::Email
- Defined in:
- lib/aws/rails/action_mailbox/rspec/email.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
- #authentic? ⇒ Boolean private
- #default_mail ⇒ Object private
- #headers ⇒ Object private
-
#initialize(authentic: true, topic: 'topic:arn:default', mail: default_mail, message_params: {}) ⇒ Email
constructor
private
A new instance of Email.
- #message_json ⇒ Object private
- #params ⇒ Object private
- #url ⇒ Object private
Constructor Details
#initialize(authentic: true, topic: 'topic:arn:default', mail: default_mail, message_params: {}) ⇒ Email
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 Email.
9 10 11 12 13 14 |
# File 'lib/aws/rails/action_mailbox/rspec/email.rb', line 9 def initialize(authentic: true, topic: 'topic:arn:default', mail: default_mail, message_params: {}) @authentic = authentic @topic = topic @mail = mail @message_params = 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.
39 40 41 |
# File 'lib/aws/rails/action_mailbox/rspec/email.rb', line 39 def authentic? @authentic end |
#default_mail ⇒ Object
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.
43 44 45 |
# File 'lib/aws/rails/action_mailbox/rspec/email.rb', line 43 def default_mail Mail.new end |
#headers ⇒ Object
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.
16 17 18 |
# File 'lib/aws/rails/action_mailbox/rspec/email.rb', line 16 def headers { 'content-type' => 'application/json' } end |
#message_json ⇒ Object
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.
32 33 34 35 36 37 |
# File 'lib/aws/rails/action_mailbox/rspec/email.rb', line 32 def { 'notificationType' => 'Received', 'content' => @mail.encoded }.merge(@message_params).to_json end |
#params ⇒ Object
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.
24 25 26 27 28 29 30 |
# File 'lib/aws/rails/action_mailbox/rspec/email.rb', line 24 def params { 'Type' => 'Notification', 'TopicArn' => @topic, 'Message' => } end |
#url ⇒ Object
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.
20 21 22 |
# File 'lib/aws/rails/action_mailbox/rspec/email.rb', line 20 def url '/rails/action_mailbox/ses/inbound_emails' end |