lib/cupid/methods/subscriber.rb in cupid-0.2.0 vs lib/cupid/methods/subscriber.rb in cupid-0.2.1

- old
+ new

@@ -38,10 +38,11 @@ subscriber_object += '<Client><ID>' + account.to_s + '</ID></Client>' if account subscriber_object += user[:lists].join('') if user[:lists] subscriber_object += '<FirstName>' + user[:first_name].to_s + '</FirstName>' if user[:first_name] subscriber_object += '<LastName>' + user[:last_name].to_s + '</LastName>' if user[:last_name] subscriber_object += '<EmailAddress>' + user[:email] + '</EmailAddress>' + subscriber_object += '</Objects>' end def list_object(list_id) '<Lists> <PartnerKey xsi:nil="true"> @@ -49,9 +50,7 @@ <ID>' + list_id.to_s + '</ID> <ObjectID xsi:nil="true"> </ObjectID> </Lists>' end - - subscriber_object += '</Objects>' end end \ No newline at end of file