Method: BeeiqAPI::Ticket#payload
- Defined in:
- lib/beeiq_api/ticket.rb
#payload ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/beeiq_api/ticket.rb', line 33 def payload data = { contactType: @contact_type, title: @title, body: @body.to_s.gsub("\n", '<br>'), email: @email, phone: @phone, name: @name, passport: @passport, contactId: @contact_id, groupName: @group_name, slaName: @sla_name, channel: @channel, tag: @tag } data.delete_if { |k, v| v.nil? || v.empty? } end |