summaryrefslogtreecommitdiff
path: root/ricky/imgradient/__init__.py
blob: a8ed8a603dd21b83dbdfa0487850fe2473febef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""class for the imgradient api handler"""
from ricky.im import Im
from ricky.imgradient.params import Params
from ricky.config import IMGRADIENT_URL


class ImGradient(Im):
    def __init__(self):
        super(ImGradient, self).__init__()
        self.url = IMGRADIENT_URL

    def params_init(self):
        new_params = Params()
        new_params.api = self
        return new_params