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

13 statements  

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

1class FooterText(object): 

2 """The text in an Footer.""" 

3 

4 def __init__(self, footer_text=None): 

5 """Create a FooterText object 

6 

7 :param footer_text: The plain text content of your footer. 

8 :type footer_text: string, optional 

9 """ 

10 self._footer_text = None 

11 

12 if footer_text is not None: 

13 self.footer_text = footer_text 

14 

15 @property 

16 def footer_text(self): 

17 """The plain text content of your footer. 

18 

19 :rtype: string 

20 """ 

21 return self._footer_text 

22 

23 @footer_text.setter 

24 def footer_text(self, value): 

25 """The plain text content of your footer. 

26 

27 :param value: The plain text content of your footer. 

28 :type value: string 

29 """ 

30 self._footer_text = value 

31 

32 def get(self): 

33 """ 

34 Get a JSON-ready representation of this FooterText. 

35 

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

37 :rtype: string 

38 """ 

39 return self.footer_text