Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/sendgrid/helpers/mail/spam_url.py: 53%

13 statements  

« prev     ^ index     » next       coverage.py v6.4.4, created at 2023-07-17 14:22 -0600

1class SpamUrl(object): 

2 """An Inbound Parse URL that you would like a copy of your email 

3 along with the spam report to be sent to.""" 

4 

5 def __init__(self, spam_url=None): 

6 """Create a SpamUrl object 

7 

8 :param spam_url: An Inbound Parse URL that you would like a copy of 

9 your email along with the spam report to be sent to. 

10 :type spam_url: string, optional 

11 """ 

12 self._spam_url = None 

13 

14 if spam_url is not None: 

15 self.spam_url = spam_url 

16 

17 @property 

18 def spam_url(self): 

19 """An Inbound Parse URL that you would like a copy of your email 

20 along with the spam report to be sent to. 

21 

22 :rtype: string 

23 """ 

24 return self._spam_url 

25 

26 @spam_url.setter 

27 def spam_url(self, value): 

28 """An Inbound Parse URL that you would like a copy of your email 

29 along with the spam report to be sent to. 

30 

31 :param value: An Inbound Parse URL that you would like a copy of your 

32 email along with the spam report to be sent to. 

33 :type value: string 

34 """ 

35 self._spam_url = value 

36 

37 def get(self): 

38 """ 

39 Get a JSON-ready representation of this SpamUrl. 

40 

41 :returns: This SpamUrl, ready for use in a request body. 

42 :rtype: string 

43 """ 

44 return self.spam_url