Class: SendGrid4r::REST::Mail::Personalization

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bccObject

Returns the value of attribute bcc

Returns:

  • (Object)

    the current value of bcc



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

def bcc
  @bcc
end

#ccObject

Returns the value of attribute cc

Returns:

  • (Object)

    the current value of cc



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

def cc
  @cc
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/personalization.rb', line 8

def custom_args
  @custom_args
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



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

def headers
  @headers
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/personalization.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/personalization.rb', line 8

def subject
  @subject
end

#substitutionsObject

Returns the value of attribute substitutions

Returns:

  • (Object)

    the current value of substitutions



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

def substitutions
  @substitutions
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



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

def to
  @to
end

Instance Method Details

#to_hObject



28
29
30
# File 'lib/sendgrid4r/rest/mail/personalization.rb', line 28

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