1 2 3 4 5 6 7 8 9 10 11 12
from ricky.api import Api from ricky.imbreak.params import ImBreakParams from ricky.config import IMBREAK_URL class ImBreak(Api): def __init__(self): self.url = IMBREAK_URL def params_init(self): new_params = ImBreakParams() #new_params = self.get_from_server() new_params.api = self return new_params