Class: SendGrid::SandBoxMode
- Inherits:
-
Object
- Object
- SendGrid::SandBoxMode
- 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) ⇒ SandBoxMode
constructor
A new instance of SandBoxMode.
- #to_json ⇒ Object
Constructor Details
#initialize(enable: nil) ⇒ SandBoxMode
Returns a new instance of SandBoxMode.
21 22 23 |
# File 'lib/sendgrid/helpers/mail/bypass_list_management.rb', line 21 def initialize(enable: nil) @enable = enable end |
Instance Attribute Details
#enable ⇒ Object
Returns the value of attribute enable.
19 20 21 |
# File 'lib/sendgrid/helpers/mail/bypass_list_management.rb', line 19 def enable @enable end |
Instance Method Details
#to_json ⇒ Object
25 26 27 28 29 |
# File 'lib/sendgrid/helpers/mail/bypass_list_management.rb', line 25 def to_json(*) { 'enable' => enable }.delete_if { |_, value| value.to_s.strip == '' } end |