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

1class UtmCampaign(object): 

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

3 

4 def __init__(self, utm_campaign=None): 

5 """Create a UtmCampaign object 

6 

7 :param utm_campaign: The name of the campaign 

8 

9 :type utm_campaign: string, optional 

10 """ 

11 self._utm_campaign = None 

12 

13 if utm_campaign is not None: 

14 self.utm_campaign = utm_campaign 

15 

16 @property 

17 def utm_campaign(self): 

18 """The name of the campaign 

19 

20 :rtype: string 

21 """ 

22 return self._utm_campaign 

23 

24 @utm_campaign.setter 

25 def utm_campaign(self, value): 

26 """The name of the campaign 

27 

28 :param value: The name of the campaign 

29 :type value: string 

30 """ 

31 self._utm_campaign = value 

32 

33 def get(self): 

34 """ 

35 Get a JSON-ready representation of this UtmCampaign. 

36 

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

38 :rtype: string 

39 """ 

40 return self.utm_campaign