1
1
# -*- coding: utf-8
2
- #
3
2
# @mtrpires - http://github.com/mtrpires
4
3
4
+
5
5
class MediaObject (object ):
6
6
"""
7
7
The MediaOutletLink contains the information regarding
@@ -11,7 +11,7 @@ class MediaObject(object):
11
11
def __init__ (self , title , date , desc , url , kind ):
12
12
"""
13
13
Initiates the object with the direct link to the story
14
- and the date it was published. Information comes from the
14
+ and the date it was published. Information comes from the
15
15
Google Search.
16
16
"""
17
17
self .title = title
@@ -44,13 +44,13 @@ def getKind(self):
44
44
# """
45
45
# def __init__(self, kind, name, url):
46
46
# """
47
- # Initiates the object with kind, name and URL.
47
+ # Initiates the object with kind, name and URL.
48
48
# All params are strings.
49
49
# """
50
50
# self.kind = kind
51
51
# self.name = name
52
52
# self.url = url
53
- #
53
+ #
54
54
# def getKind(self):
55
55
# """
56
56
# Gets the kind of the media outlet.
@@ -59,7 +59,7 @@ def getKind(self):
59
59
# portal, revista, jornal, blog
60
60
# """
61
61
# return self.kind
62
- #
62
+ #
63
63
# def getName(self):
64
64
# """
65
65
# Gets the name of the media outlet.
@@ -68,37 +68,37 @@ def getKind(self):
68
68
# Folha de S.Paulo, Estado de S.Paulo, Nassif, Simon.
69
69
# """
70
70
# return self.name
71
- #
71
+ #
72
72
# def getURL(self):
73
73
# """
74
74
# Gets the URL of the media outlet.
75
75
# """
76
76
# return self.url
77
- #
77
+ #
78
78
# def setKind(self, kind):
79
79
# """
80
80
# Sets the kind of the media outlet.
81
81
# Expected values are:
82
82
# portal, revista, jornal, blog
83
83
# """
84
- #
84
+ #
85
85
# self.kind = kind
86
- #
86
+ #
87
87
# def setName(self, name):
88
88
# """
89
89
# Sets the name of the media outlet.
90
90
# Expected values are:
91
91
# Terra, G1, UOL, Veja, IstoÉ, Época, Folha, O Globo,
92
92
# Folha de S.Paulo, Estado de S.Paulo, Nassif, Simon.
93
- # """
93
+ # """
94
94
# self.name = name
95
- #
95
+ #
96
96
# def setURL(self, url):
97
97
# """
98
98
# Sets the URL of the media outlet.
99
99
# """
100
100
# self.url = url
101
- #
101
+ #
102
102
# def __repr__(self):
103
103
# """
104
104
# Shows useful information about the Object when called from prompt
0 commit comments