Class: SendGrid::MailSettingsDto

Inherits:
Object
  • Object
show all
Defined in:
lib/sendgrid/helpers/settings/mail_settings_dto.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#address_whitelistObject (readonly)

Returns the value of attribute address_whitelist.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def address_whitelist
  @address_whitelist
end

#bccObject (readonly)

Returns the value of attribute bcc.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def bcc
  @bcc
end

#bounce_purgeObject (readonly)

Returns the value of attribute bounce_purge.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def bounce_purge
  @bounce_purge
end

Returns the value of attribute footer.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def footer
  @footer
end

#forward_bounceObject (readonly)

Returns the value of attribute forward_bounce.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def forward_bounce
  @forward_bounce
end

#forward_spamObject (readonly)

Returns the value of attribute forward_spam.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def forward_spam
  @forward_spam
end

#plain_contentObject (readonly)

Returns the value of attribute plain_content.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def plain_content
  @plain_content
end

#spam_checkObject (readonly)

Returns the value of attribute spam_check.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def spam_check
  @spam_check
end

#templateObject (readonly)

Returns the value of attribute template.



3
4
5
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3

def template
  @template
end

Class Method Details

.fetch(sendgrid_client:, name:, query_params:) ⇒ Object



5
6
7
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 5

def self.fetch(sendgrid_client:, name:, query_params:)
  sendgrid_client.mail_settings.public_send(name).get(query_params: query_params)
end

.update(sendgrid_client:, name:, request_body:) ⇒ Object



9
10
11
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 9

def self.update(sendgrid_client:, name:, request_body:)
  sendgrid_client.mail_settings.public_send(name).patch(request_body: request_body)
end