Completed
Pull Request — master (#341)
by
unknown
02:03
created

ArticleGet.run()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 5
rs 9.4286
cc 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