Class: SendGrid4r::REST::Mail::Params

Inherits:
Struct
  • Object
show all
Defined in:
lib/sendgrid4r/rest/mail/params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#asmObject

Returns the value of attribute asm

Returns:

  • (Object)

    the current value of asm



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def asm
  @asm
end

#attachmentsObject

Returns the value of attribute attachments

Returns:

  • (Object)

    the current value of attachments



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def attachments
  @attachments
end

#batch_idObject

Returns the value of attribute batch_id

Returns:

  • (Object)

    the current value of batch_id



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def batch_id
  @batch_id
end

#categoriesObject

Returns the value of attribute categories

Returns:

  • (Object)

    the current value of categories



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def categories
  @categories
end

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def content
  @content
end

#custom_argsObject

Returns the value of attribute custom_args

Returns:

  • (Object)

    the current value of custom_args



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def custom_args
  @custom_args
end

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def from
  @from
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def headers
  @headers
end

#ip_pool_nameObject

Returns the value of attribute ip_pool_name

Returns:

  • (Object)

    the current value of ip_pool_name



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def ip_pool_name
  @ip_pool_name
end

#mail_settingsObject

Returns the value of attribute mail_settings

Returns:

  • (Object)

    the current value of mail_settings



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def mail_settings
  @mail_settings
end

#personalizationsObject

Returns the value of attribute personalizations

Returns:

  • (Object)

    the current value of personalizations



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def personalizations
  @personalizations
end

#reply_toObject

Returns the value of attribute reply_to

Returns:

  • (Object)

    the current value of reply_to



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def reply_to
  @reply_to
end

#sectionsObject

Returns the value of attribute sections

Returns:

  • (Object)

    the current value of sections



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def sections
  @sections
end

#send_atObject

Returns the value of attribute send_at

Returns:

  • (Object)

    the current value of send_at



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def send_at
  @send_at
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def subject
  @subject
end

#template_idObject

Returns the value of attribute template_id

Returns:

  • (Object)

    the current value of template_id



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def template_id
  @template_id
end

#tracking_settingsObject

Returns the value of attribute tracking_settings

Returns:

  • (Object)

    the current value of tracking_settings



8
9
10
# File 'lib/sendgrid4r/rest/mail/params.rb', line 8

def tracking_settings
  @tracking_settings
end

Instance Method Details

#to_hObject



59
60
61
# File 'lib/sendgrid4r/rest/mail/params.rb', line 59

def to_h
  super.reject { |_key, value| value.nil? }
end