Completed
Push — master ( 827fc4...1ae7cf )
by Lakshmi
21s
created

SuspendUserAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
from lib.actions import YammerAction
2
3
__all__ = [
4
    'SuspendUserAction'
5
]
6
7
8
class SuspendUserAction(YammerAction):
9
    def run(self, id=None):
0 ignored issues
show
Bug Best Practice introduced by
This seems to re-define the built-in id.

It is generally discouraged to redefine built-ins as this makes code very hard to read.

Loading history...
10
        yammer = self.authenticate()
11
        user = yammer.users.suspend(id)
12
        return user
13