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