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

13 statements  

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

1class FooterHtml(object): 

2 """The HTML in a Footer.""" 

3 

4 def __init__(self, footer_html=None): 

5 """Create a FooterHtml object 

6 

7 :param footer_html: The html content of your footer. 

8 :type footer_html: string, optional 

9 """ 

10 self._footer_html = None 

11 

12 if footer_html is not None: 

13 self.footer_html = footer_html 

14 

15 @property 

16 def footer_html(self): 

17 """The html content of your footer. 

18 

19 :rtype: string 

20 """ 

21 return self._footer_html 

22 

23 @footer_html.setter 

24 def footer_html(self, html): 

25 """The html content of your footer. 

26 

27 :param html: The html content of your footer. 

28 :type html: string 

29 """ 

30 self._footer_html = html 

31 

32 def get(self): 

33 """ 

34 Get a JSON-ready representation of this FooterHtml. 

35 

36 :returns: This FooterHtml, ready for use in a request body. 

37 :rtype: string 

38 """ 

39 return self.footer_html