def add_product(self, name, stores): ingredient = join_params(self.data, { 'products': self.data['products'] + [{ 'name': name, 'stores': stores }] }) return self.__class__(**ingredient)
def add_product(self, name, stores, reviews): equipment = join_params( self.data, { 'products': self.data['products'] + [{ 'name': name, 'stores': stores, 'reviews': reviews }] }) return self.__class__(**equipment)
def products(self, products): equipment = join_params(self.data, {'products': products}) return self.__class__(**equipment)
def summary(self, name): equipment = join_params(self.data, {'summary': summary}) return self.__class__(**equipment)
def name(self, name): equipment = join_params(self.data, {'name': name}) return self.__class__(**equipment)
def config_id(self, config_id): equipment = join_params(self.data, {'config_id': config_id}) return self.__class__(**equipment)
def products(self, products): ingredient = join_params(self.data, {'products': products}) return self.__class__(**ingredient)
def summary(self, summary): ingredient = join_params(self.data, {'summary': summary}) return self.__class__(**summary)
def name(self, name): ingredient = join_params(self.data, {'name': name}) return self.__class__(**ingredient)
def config_id(self, name): ingredient = join_params(self.data, {'config_id': config_id}) return self.__class__(**ingredient)