Class: SendGrid::BypassListManagement

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable: nil) ⇒ BypassListManagement

Returns a new instance of BypassListManagement.



7
8
9
# File 'lib/sendgrid/helpers/mail/bypass_list_management.rb', line 7

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

Instance Attribute Details

#enableObject

Returns the value of attribute enable.



5
6
7
# File 'lib/sendgrid/helpers/mail/bypass_list_management.rb', line 5

def enable
  @enable
end

Instance Method Details

#to_jsonObject



11
12
13
14
15
# File 'lib/sendgrid/helpers/mail/bypass_list_management.rb', line 11

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