Class: SendGrid::MailSettings
- Inherits:
-
Object
- Object
- SendGrid::MailSettings
- Defined in:
- lib/sendgrid/helpers/mail/mail.rb
Instance Method Summary collapse
- #bcc ⇒ Object
- #bcc=(bcc) ⇒ Object
- #bypass_list_management ⇒ Object
- #bypass_list_management=(bypass_list_management) ⇒ Object
- #footer ⇒ Object
- #footer=(footer) ⇒ Object
- #initilize ⇒ Object
- #sandbox_mode ⇒ Object
- #sandbox_mode=(sandbox_mode) ⇒ Object
- #spam_check ⇒ Object
- #spam_check=(spam_check) ⇒ Object
- #to_json ⇒ Object
Instance Method Details
#bcc ⇒ Object
424 425 426 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 424 def bcc @bcc.nil? ? nil : @bcc.to_json end |
#bcc=(bcc) ⇒ Object
420 421 422 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 420 def bcc=(bcc) @bcc = bcc end |
#bypass_list_management ⇒ Object
408 409 410 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 408 def bypass_list_management @bypass_list_management.nil? ? nil : @bypass_list_management.to_json end |
#bypass_list_management=(bypass_list_management) ⇒ Object
404 405 406 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 404 def bypass_list_management=(bypass_list_management) @bypass_list_management = bypass_list_management end |
#footer ⇒ Object
416 417 418 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 416 def @footer.nil? ? nil : @footer.to_json end |
#footer=(footer) ⇒ Object
412 413 414 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 412 def () @footer = end |
#initilize ⇒ Object
388 389 390 391 392 393 394 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 388 def initilize @bcc = nil @bypass_list_management = nil @footer = nil @sandbox_mode = nil @spam_check = nil end |
#sandbox_mode ⇒ Object
400 401 402 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 400 def sandbox_mode @sandbox_mode.nil? ? nil : @sandbox_mode.to_json end |
#sandbox_mode=(sandbox_mode) ⇒ Object
396 397 398 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 396 def sandbox_mode=(sandbox_mode) @sandbox_mode = sandbox_mode end |
#spam_check ⇒ Object
432 433 434 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 432 def spam_check @spam_check.nil? ? nil : @spam_check.to_json end |
#spam_check=(spam_check) ⇒ Object
428 429 430 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 428 def spam_check=(spam_check) @spam_check = spam_check end |
#to_json ⇒ Object
436 437 438 439 440 441 442 443 444 |
# File 'lib/sendgrid/helpers/mail/mail.rb', line 436 def to_json(*) { 'bcc' => self.bcc, 'bypass_list_management' => self.bypass_list_management, 'footer' => self., 'sandbox_mode' => self.sandbox_mode, 'spam_check' => self.spam_check }.delete_if { |_, value| value.to_s.strip == '' } end |