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

13 statements  

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

1class OpenTrackingSubstitutionTag(object): 

2 """The open tracking substitution tag of an SubscriptionTracking object.""" 

3 

4 def __init__(self, open_tracking_substitution_tag=None): 

5 """Create a OpenTrackingSubstitutionTag object 

6 

7 :param open_tracking_substitution_tag: Allows you to specify a 

8 substitution tag that you can insert in the body of your 

9 email at a location that you desire. This tag will be replaced 

10 by the open tracking pixel. 

11 """ 

12 self._open_tracking_substitution_tag = None 

13 

14 if open_tracking_substitution_tag is not None: 

15 self.open_tracking_substitution_tag = \ 

16 open_tracking_substitution_tag 

17 

18 @property 

19 def open_tracking_substitution_tag(self): 

20 """Allows you to specify a substitution tag that you can insert in 

21 the body of your email at a location that you desire. This tag 

22 will be replaced by the open tracking pixel. 

23 

24 :rtype: string 

25 """ 

26 return self._open_tracking_substitution_tag 

27 

28 @open_tracking_substitution_tag.setter 

29 def open_tracking_substitution_tag(self, value): 

30 """Allows you to specify a substitution tag that you can insert in 

31 the body of your email at a location that you desire. This tag will 

32 be replaced by the open tracking pixel. 

33 

34 :param value: Allows you to specify a substitution tag that you can 

35 insert in the body of your email at a location that you desire. This 

36 tag will be replaced by the open tracking pixel. 

37 :type value: string 

38 """ 

39 self._open_tracking_substitution_tag = value 

40 

41 def get(self): 

42 """ 

43 Get a JSON-ready representation of this OpenTrackingSubstitutionTag. 

44 

45 :returns: This OpenTrackingSubstitutionTag, ready for use in a request 

46 body. 

47 :rtype: string 

48 """ 

49 return self.open_tracking_substitution_tag