Class: SendGrid::BypassListManagement
- Inherits:
-
Object
- Object
- SendGrid::BypassListManagement
- Defined in:
- lib/sendgrid/helpers/mail/bypass_list_management.rb
Instance Attribute Summary collapse
-
#enable ⇒ Object
Returns the value of attribute enable.
Instance Method Summary collapse
-
#initialize(enable: nil) ⇒ BypassListManagement
constructor
A new instance of BypassListManagement.
- #to_json ⇒ Object
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
#enable ⇒ Object
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_json ⇒ Object
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 |