forked from sendgrid/sendgrid-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utm_source.py
43 lines (34 loc) · 1.18 KB
/
utm_source.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
class UtmSource(object):
"""The utm source of an Ganalytics object."""
def __init__(self, utm_source=None):
"""Create a UtmSource object
:param utm_source: Name of the referrer source.
(e.g. Google, SomeDomain.com, or Marketing Email)
:type utm_source: string, optional
"""
self._utm_source = None
if utm_source is not None:
self.utm_source = utm_source
@property
def utm_source(self):
"""Name of the referrer source. (e.g. Google, SomeDomain.com, or
Marketing Email)
:rtype: string
"""
return self._utm_source
@utm_source.setter
def utm_source(self, value):
"""Name of the referrer source. (e.g. Google, SomeDomain.com, or
Marketing Email)
:param value: Name of the referrer source.
(e.g. Google, SomeDomain.com, or Marketing Email)
:type value: string
"""
self._utm_source = value
def get(self):
"""
Get a JSON-ready representation of this UtmSource.
:returns: This UtmSource, ready for use in a request body.
:rtype: string
"""
return self.utm_source