forked from sendgrid/sendgrid-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscription_html.py
45 lines (36 loc) · 1.58 KB
/
subscription_html.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class SubscriptionHtml(object):
"""The HTML of an SubscriptionTracking."""
def __init__(self, subscription_html=None):
"""Create a SubscriptionHtml object
:param subscription_html: Html to be appended to the email, with the
subscription tracking link. You may control
where the link is by using the tag <% %>
:type subscription_html: string, optional
"""
self._subscription_html = None
if subscription_html is not None:
self.subscription_html = subscription_html
@property
def subscription_html(self):
"""Html to be appended to the email, with the subscription tracking link.
You may control where the link is by using the tag <% %>
:rtype: string
"""
return self._subscription_html
@subscription_html.setter
def subscription_html(self, value):
"""Html to be appended to the email, with the subscription tracking link.
You may control where the link is by using the tag <% %>
:param value: Html to be appended to the email, with the subscription
tracking link. You may control where the link is by using
the tag <% %>
:type value: string
"""
self._subscription_html = value
def get(self):
"""
Get a JSON-ready representation of this SubscriptionHtml.
:returns: This SubscriptionHtml, ready for use in a request body.
:rtype: string
"""
return self.subscription_html