class SendGrid::Footer
Attributes
enable[RW]
html[RW]
text[RW]
Public Class Methods
new(enable: nil, text: nil, html: nil)
click to toggle source
# File lib/sendgrid/helpers/mail/footer.rb, line 7 def initialize(enable: nil, text: nil, html: nil) @enable = enable @text = text @html = html end
Public Instance Methods
to_json(*)
click to toggle source
# File lib/sendgrid/helpers/mail/footer.rb, line 13 def to_json(*) { 'enable' => enable, 'text' => text, 'html' => html }.delete_if { |_, value| value.to_s.strip == '' } end