Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/sendgrid/helpers/mail/utm_campaign.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 UtmCampaign(object):
2 """The utm campaign of an Ganalytics object."""
4 def __init__(self, utm_campaign=None):
5 """Create a UtmCampaign object
7 :param utm_campaign: The name of the campaign
9 :type utm_campaign: string, optional
10 """
11 self._utm_campaign = None
13 if utm_campaign is not None:
14 self.utm_campaign = utm_campaign
16 @property
17 def utm_campaign(self):
18 """The name of the campaign
20 :rtype: string
21 """
22 return self._utm_campaign
24 @utm_campaign.setter
25 def utm_campaign(self, value):
26 """The name of the campaign
28 :param value: The name of the campaign
29 :type value: string
30 """
31 self._utm_campaign = value
33 def get(self):
34 """
35 Get a JSON-ready representation of this UtmCampaign.
37 :returns: This UtmCampaign, ready for use in a request body.
38 :rtype: string
39 """
40 return self.utm_campaign