lib/vng/contact.rb in vng-0.1.19 vs lib/vng/contact.rb in vng-0.1.20
- old
+ new
@@ -35,18 +35,8 @@
email = data['Fields'].find{|field| field['fieldID'] == 97}['fieldValue']
phone = data['Fields'].find{|field| field['fieldID'] == 96}['fieldValue']
new id: id, first_name: first_name, last_name: last_name, email: email, phone: phone
end
-
- # Data validation failed. [{"fieldID"=>0, "fieldName"=>nil, "errNo"=>-1408, "errMsg"=>"Primary contact cannot be deleted."}]
- # def destroy
- # body = {
- # method: '4',
- # objectID: id,
- # }
- #
- # self.class.request path: PATH, body: body
- # end
end
end