Skip to content

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

@testflyjets

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.

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