Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/sendgrid/helpers/mail/spam_threshold.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 SpamThreshold(object):
2 """The threshold used to determine if your content qualifies as spam
3 on a scale from 1 to 10, with 10 being most strict, or most likely
4 to be considered as spam."""
6 def __init__(self, spam_threshold=None):
7 """Create a SpamThreshold object
9 :param spam_threshold: The threshold used to determine if your content
10 qualifies as spam on a scale from 1 to 10, with
11 10 being most strict, or most likely to be
12 considered as spam.
13 :type spam_threshold: integer, optional
14 """
15 self._spam_threshold = None
17 if spam_threshold is not None:
18 self.spam_threshold = spam_threshold
20 @property
21 def spam_threshold(self):
22 """The threshold used to determine if your content
23 qualifies as spam on a scale from 1 to 10, with
24 10 being most strict, or most likely to be
25 considered as spam.
27 :rtype: integer
28 """
29 return self._spam_threshold
31 @spam_threshold.setter
32 def spam_threshold(self, value):
33 """The threshold used to determine if your content
34 qualifies as spam on a scale from 1 to 10, with
35 10 being most strict, or most likely to be
36 considered as spam.
38 :param value: The threshold used to determine if your content
39 qualifies as spam on a scale from 1 to 10, with
40 10 being most strict, or most likely to be
41 considered as spam.
42 :type value: integer
43 """
44 self._spam_threshold = value
46 def get(self):
47 """
48 Get a JSON-ready representation of this SpamThreshold.
50 :returns: This SpamThreshold, ready for use in a request body.
51 :rtype: integer
52 """
53 return self.spam_threshold