responsys 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/responsys.rb +3 -3
- data/responsys.gemspec +1 -1
- metadata +1 -1
data/lib/responsys.rb
CHANGED
@@ -69,11 +69,11 @@ class Responsys
|
|
69
69
|
trigger_campaign_message.recipientData = []
|
70
70
|
|
71
71
|
recipients.each do |recipient_info|
|
72
|
-
options = recipient_info.has_key?(
|
72
|
+
options = recipient_info.has_key?('options') ? recipient_info['options'] : {foo: 'bar'}
|
73
73
|
|
74
74
|
recipient = Recipient.new
|
75
|
-
recipient.emailAddress = recipient_info[
|
76
|
-
recipient.customerId = recipient_info[
|
75
|
+
recipient.emailAddress = recipient_info['email'] if recipient_info['email']
|
76
|
+
recipient.customerId = recipient_info['id'] if recipient_info['id']
|
77
77
|
recipient_data = RecipientData.new
|
78
78
|
recipient_data.recipient = recipient
|
79
79
|
recipient_data.optionalData = []
|
data/responsys.gemspec
CHANGED