Skip to content

Handle ConstantContact::List#contact_count when list contains no contacts #3

Description

@testflyjets

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions