lib/createsend/campaign.rb in createsend-3.4.0 vs lib/createsend/campaign.rb in createsend-4.0.0

- old
+ new

@@ -82,29 +82,29 @@ def send_preview(recipients, personalize="fallback") options = { :body => { :PreviewRecipients => recipients.kind_of?(String) ? [ recipients ] : recipients, :Personalize => personalize }.to_json } - response = post "sendpreview", options + post "sendpreview", options end # Sends this campaign. def send(confirmation_email, send_date="immediately") options = { :body => { :ConfirmationEmail => confirmation_email, :SendDate => send_date }.to_json } - response = post "send", options + post "send", options end # Unschedules this campaign if it is currently scheduled. def unschedule options = { :body => "" } - response = post "unschedule", options + post "unschedule", options end # Deletes this campaign. def delete - response = super "/campaigns/#{campaign_id}.json", {} + super "/campaigns/#{campaign_id}.json", {} end # Gets a summary of this campaign def summary response = get "summary", {} \ No newline at end of file