diff --git a/toonapilib/toonapilib.py b/toonapilib/toonapilib.py index 69f77fb..067978d 100755 --- a/toonapilib/toonapilib.py +++ b/toonapilib/toonapilib.py @@ -154,6 +154,16 @@ def _get_agreements(self, session): raise AgreementsRetrievalError(response.text) return agreements + @property + def display_names(self): + """The ids of all the agreements. + + Returns: + list: A list of the agreement ids. + + """ + return [agreement.display_common_name.lower() for agreement in self.agreements] + def _reset(self): self.agreements = None self.agreement = None