lib/sendgrid4r/rest/campaigns/campaigns.rb in sendgrid4r-1.7.1 vs lib/sendgrid4r/rest/campaigns/campaigns.rb in sendgrid4r-1.8.0

- old
+ new

@@ -9,23 +9,24 @@ module Campaigns include SendGrid4r::REST::Request Campaign = Struct.new( :id, :title, :subject, :sender_id, :list_ids, :segment_ids, - :categories, :suppression_group_id, :html_content, - :plain_content, :send_at, :status + :categories, :suppression_group_id, :custom_unsubscribe_url, + :ip_pool, :html_content, :plain_content, :send_at, :status ) Campaigns = Struct.new(:result) def self.create_campaign(resp) return resp if resp.nil? send_at = Time.at(resp['send_at']) unless resp['send_at'].nil? Campaign.new( resp['id'], resp['title'], resp['subject'], resp['sender_id'], resp['list_ids'], resp['segment_ids'], resp['categories'], - resp['suppression_group_id'], resp['html_content'], - resp['plain_content'], send_at, resp['status'] + resp['suppression_group_id'], resp['custom_unsubscribe_url'], + resp['ip_pool'], resp['html_content'], resp['plain_content'], + send_at, resp['status'] ) end def self.create_campaigns(resp) return resp if resp.nil?