Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/sendgrid/helpers/mail/subscription_html.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 SubscriptionHtml(object):
2 """The HTML of an SubscriptionTracking."""
4 def __init__(self, subscription_html=None):
5 """Create a SubscriptionHtml object
7 :param subscription_html: Html to be appended to the email, with the
8 subscription tracking link. You may control
9 where the link is by using the tag <% %>
10 :type subscription_html: string, optional
11 """
12 self._subscription_html = None
14 if subscription_html is not None:
15 self.subscription_html = subscription_html
17 @property
18 def subscription_html(self):
19 """Html to be appended to the email, with the subscription tracking link.
20 You may control where the link is by using the tag <% %>
22 :rtype: string
23 """
24 return self._subscription_html
26 @subscription_html.setter
27 def subscription_html(self, value):
28 """Html to be appended to the email, with the subscription tracking link.
29 You may control where the link is by using the tag <% %>
31 :param value: Html to be appended to the email, with the subscription
32 tracking link. You may control where the link is by using
33 the tag <% %>
34 :type value: string
35 """
36 self._subscription_html = value
38 def get(self):
39 """
40 Get a JSON-ready representation of this SubscriptionHtml.
42 :returns: This SubscriptionHtml, ready for use in a request body.
43 :rtype: string
44 """
45 return self.subscription_html