Class: SendGrid::BccSettings
- Inherits:
-
Object
- Object
- SendGrid::BccSettings
- Defined in:
- lib/sendgrid/helpers/mail/bcc_settings.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#enable ⇒ Object
Returns the value of attribute enable.
Instance Method Summary collapse
-
#initialize(enable: nil, email: nil) ⇒ BccSettings
constructor
A new instance of BccSettings.
- #to_json ⇒ Object
Constructor Details
#initialize(enable: nil, email: nil) ⇒ BccSettings
Returns a new instance of BccSettings.
7 8 9 10 |
# File 'lib/sendgrid/helpers/mail/bcc_settings.rb', line 7 def initialize(enable: nil, email: nil) @enable = enable @email = email end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/sendgrid/helpers/mail/bcc_settings.rb', line 5 def email @email end |
#enable ⇒ Object
Returns the value of attribute enable.
5 6 7 |
# File 'lib/sendgrid/helpers/mail/bcc_settings.rb', line 5 def enable @enable end |
Instance Method Details
#to_json ⇒ Object
12 13 14 15 16 17 |
# File 'lib/sendgrid/helpers/mail/bcc_settings.rb', line 12 def to_json(*) { 'enable' => enable, 'email' => email }.delete_if { |_, value| value.to_s.strip == '' } end |