lib/sailthru.rb in sailthru-client-1.05 vs lib/sailthru.rb in sailthru-client-1.06
- old
+ new
@@ -5,11 +5,11 @@
require 'json'
require 'digest/md5'
module Sailthru
- Version = VERSION = '1.05'
+ Version = VERSION = '1.06'
class SailthruClientException < Exception
end
module Helpers
@@ -215,26 +215,9 @@
post = options ? options : {}
post[:copy_blast] = blast_id
#post[:name] = name
post[:schedule_time] = schedule_time
api_post(:blast, post)
- end
-
- def schedule_blast_from_copy(copy_blast = nil, copy_template = nil, options = {})
- if copy_blast.nil? and copy_template.nil?
- raise SailthruClientException.new('copy_blast and copy_template are both null')
- end
-
- post = options ? options : {}
- if copy_blast != nil
- post[:copy_blast] = copy_blast
- end
-
- if copy_template != nil
- post[:copy_template] = copy_template
- end
-
- api_post(:blast, post)
end
# params
# blast_id, Fixnum | String