Handle ConstantContact::List#contact_count when list contains no contacts
Opened this issue · 0 comments
testflyjets commented
If a List does not contain any contacts the @attributes collection will not contain the ContactCount key. This will cause an exception. The :contact_count method should be hard-coded as an instance method and return 0 if the ContactCount attribute is missing.
Perhaps adding an empty? method for the list would be handy as well.