struct Sendgrid::Message

Included Modules

Defined in:

sendgrid/sendgrid_structs.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(personalizations : Array(Personalization), from : Address, subject : String, content : Array(Content) | Nil = nil, reply_to : Address | Nil = nil, template_id : String | Nil = nil, headers : Hash(String, String) | Nil = nil, categories : Array(String) | Nil = nil, custom_args : Hash(String, String) | Nil = nil, send_at : Int64 | Nil = nil, batch_id : String | Nil = nil, asm __arg0 : AdvancedSuppressionManagement | Nil = nil, ip_pool_name : String | Nil = nil, attachments : Array(Attachment) | Nil = nil, tracking_settings : TrackingSettings | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail


def attachments : Array(Attachment) | Nil #

def batch_id : String | Nil #

def categories : Array(String) | Nil #

def clone #

[View source]
def content : Array(Content) | Nil #

def copy_with(personalizations _personalizations = @personalizations, from _from = @from, subject _subject = @subject, content _content = @content, reply_to _reply_to = @reply_to, template_id _template_id = @template_id, headers _headers = @headers, categories _categories = @categories, custom_args _custom_args = @custom_args, send_at _send_at = @send_at, batch_id _batch_id = @batch_id, asm _asm = @asm, ip_pool_name _ip_pool_name = @ip_pool_name, attachments _attachments = @attachments, tracking_settings _tracking_settings = @tracking_settings) #

[View source]
def custom_args : Hash(String, String) | Nil #

def from : Address #

def headers : Hash(String, String) | Nil #

def ip_pool_name : String | Nil #

def personalizations : Array(Personalization) #

def reply_to : Address | Nil #

def send_at : Int64 | Nil #

def subject : String #

def template_id : String | Nil #

def tracking_settings : TrackingSettings | Nil #