Class: SendGrid::MailSettings

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

Instance Method Summary collapse

Instance Method Details

#bccObject


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_managementObject


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

416
417
418
# File 'lib/sendgrid/helpers/mail/mail.rb', line 416

def footer
  @footer.nil? ? nil : @footer.to_json
end

#footer=(footer) ⇒ Object


412
413
414
# File 'lib/sendgrid/helpers/mail/mail.rb', line 412

def footer=(footer)
  @footer = footer
end

#initilizeObject


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_modeObject


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_checkObject


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_jsonObject


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.footer,
    'sandbox_mode' => self.sandbox_mode,
    'spam_check' => self.spam_check
  }.delete_if { |_, value| value.to_s.strip == '' }
end