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

13 statements  

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

1class UtmContent(object): 

2 """The utm content of an Ganalytics object.""" 

3 

4 def __init__(self, utm_content=None): 

5 """Create a UtmContent object 

6 

7 :param utm_content: Used to differentiate your campaign from advertisements. 

8 

9 :type utm_content: string, optional 

10 """ 

11 self._utm_content = None 

12 

13 if utm_content is not None: 

14 self.utm_content = utm_content 

15 

16 @property 

17 def utm_content(self): 

18 """Used to differentiate your campaign from advertisements. 

19 

20 :rtype: string 

21 """ 

22 return self._utm_content 

23 

24 @utm_content.setter 

25 def utm_content(self, value): 

26 """Used to differentiate your campaign from advertisements. 

27 

28 :param value: Used to differentiate your campaign from advertisements. 

29 :type value: string 

30 """ 

31 self._utm_content = value 

32 

33 def get(self): 

34 """ 

35 Get a JSON-ready representation of this UtmContent. 

36 

37 :returns: This UtmContent, ready for use in a request body. 

38 :rtype: string 

39 """ 

40 return self.utm_content