Class: SendGrid::MailSettingsDto
- Inherits:
-
Object
- Object
- SendGrid::MailSettingsDto
- Defined in:
- lib/sendgrid/helpers/settings/mail_settings_dto.rb
Instance Attribute Summary collapse
-
#address_whitelist ⇒ Object
readonly
Returns the value of attribute address_whitelist.
-
#bcc ⇒ Object
readonly
Returns the value of attribute bcc.
-
#bounce_purge ⇒ Object
readonly
Returns the value of attribute bounce_purge.
-
#footer ⇒ Object
readonly
Returns the value of attribute footer.
-
#forward_bounce ⇒ Object
readonly
Returns the value of attribute forward_bounce.
-
#forward_spam ⇒ Object
readonly
Returns the value of attribute forward_spam.
-
#plain_content ⇒ Object
readonly
Returns the value of attribute plain_content.
-
#spam_check ⇒ Object
readonly
Returns the value of attribute spam_check.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Class Method Summary collapse
- .fetch(sendgrid_client:, name:, query_params:) ⇒ Object
- .update(sendgrid_client:, name:, request_body:) ⇒ Object
Instance Attribute Details
#address_whitelist ⇒ Object (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 |
#bcc ⇒ Object (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_purge ⇒ Object (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 |
#footer ⇒ Object (readonly)
Returns the value of attribute footer.
3 4 5 |
# File 'lib/sendgrid/helpers/settings/mail_settings_dto.rb', line 3 def @footer end |
#forward_bounce ⇒ Object (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_spam ⇒ Object (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_content ⇒ Object (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_check ⇒ Object (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 |
#template ⇒ Object (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 |