Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/sendgrid/helpers/mail/template_id.py: 94%
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 TemplateId(object):
2 """The template ID of an Attachment object."""
4 def __init__(self, template_id=None):
5 """Create a TemplateId object
7 :param template_id: The template id for the message
8 :type template_id: string, optional
9 """
10 self._template_id = None
12 if template_id is not None: 12 ↛ exitline 12 didn't return from function '__init__', because the condition on line 12 was never false
13 self.template_id = template_id
15 @property
16 def template_id(self):
17 """The template id for the message
19 :rtype: string
20 """
21 return self._template_id
23 @template_id.setter
24 def template_id(self, value):
25 """The template id for the message
27 :param value: The template id for the message
28 :type value: string
29 """
30 self._template_id = value
32 def get(self):
33 """
34 Get a JSON-ready representation of this TemplateId.
36 :returns: This TemplateId, ready for use in a request body.
37 :rtype: string
38 """
39 return self.template_id