-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'from' support to MessageCreateOptions
- Loading branch information
1 parent
d7d1512
commit 2592b53
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ module Models | |
class MessageCreateOptions < BaseModel | ||
def initialize(data = {}) | ||
@to = data['to'] | ||
@from = data['from'] | ||
@send = data['send'] | ||
@subject = data['subject'] | ||
@text = data['text'] | ||
|
@@ -14,6 +15,11 @@ def initialize(data = {}) | |
# Must be a verified email address. | ||
attr_accessor :to | ||
|
||
# @return [String] Allows for the partial override of the message's | ||
# 'from' address. This **must** be an address ending with | ||
# `YOUR_SERVER.mailosaur.net`, such as `[email protected]`. | ||
attr_accessor :from | ||
|
||
# @return [Boolean] If true, email will be sent upon creation. | ||
attr_accessor :send | ||
|
||
|