Class: SendGrid::BypassListManagement

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

Instance Method Summary collapse

Constructor Details

#initialize(enable: nil) ⇒ BypassListManagement

Returns a new instance of BypassListManagement.


348
349
350
# File 'lib/sendgrid/helpers/mail/mail.rb', line 348

def initialize(enable: nil)
  @enable = enable
end

Instance Method Details

#enableObject


356
357
358
# File 'lib/sendgrid/helpers/mail/mail.rb', line 356

def enable
  @enable
end

#enable=(enable) ⇒ Object


352
353
354
# File 'lib/sendgrid/helpers/mail/mail.rb', line 352

def enable=(enable)
  @enable = enable
end

#to_jsonObject


360
361
362
363
364
# File 'lib/sendgrid/helpers/mail/mail.rb', line 360

def to_json(*)
  {
    'enable' => self.enable
  }.delete_if { |_, value| value.to_s.strip == '' }
end