Completed
Push — master ( 3c61a8...5ea3bf )
by
unknown
02:27
created

ArticleGet   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %
Metric Value
wmc 1
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 5 1
1
from lib.actions import BaseAction
2
3
4
class ArticleGet(BaseAction):
5
    def run(self, slug):
6
        slug = self._convert_slug(slug)
7
        path = '/articles/%s' % slug
8
        response = self._api_get(path)
9
        return response
10