class SendGrid::Category
Attributes
category[RW]
category=[RW]
name[RW]
Public Class Methods
new(name: nil)
click to toggle source
# File lib/sendgrid/helpers/mail/category.rb, line 5 def initialize(name: nil) @name = name end
Public Instance Methods
to_json(*)
click to toggle source
# File lib/sendgrid/helpers/mail/category.rb, line 9 def to_json(*) { 'category' => name }.delete_if { |_, value| value.to_s.strip == '' } end