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
« 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."""
4 def __init__(self, utm_content=None):
5 """Create a UtmContent object
7 :param utm_content: Used to differentiate your campaign from advertisements.
9 :type utm_content: string, optional
10 """
11 self._utm_content = None
13 if utm_content is not None:
14 self.utm_content = utm_content
16 @property
17 def utm_content(self):
18 """Used to differentiate your campaign from advertisements.
20 :rtype: string
21 """
22 return self._utm_content
24 @utm_content.setter
25 def utm_content(self, value):
26 """Used to differentiate your campaign from advertisements.
28 :param value: Used to differentiate your campaign from advertisements.
29 :type value: string
30 """
31 self._utm_content = value
33 def get(self):
34 """
35 Get a JSON-ready representation of this UtmContent.
37 :returns: This UtmContent, ready for use in a request body.
38 :rtype: string
39 """
40 return self.utm_content