Completed
Push — master ( 027004...28f5d4 )
by Edward
02:28
created

ListMessagesFromTopicAction.run()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
c 1
b 0
f 1
dl 0
loc 4
rs 10
1
from lib.actions import YammerAction
2
3
__all__ = [
4
    'ListMessagesFromTopicAction'
5
]
6
7
8
class ListMessagesFromTopicAction(YammerAction):
9
    def run(self, topic_id):
10
        yammer = self.authenticate()
11
        messages = yammer.messages.about_topic(topic_id)
12
        return messages
13