def add_rulegroup(self, rulegroup):
        """Adds a rulegroup to this segment."""
        body = rulegroup
        response = self._post("/segments/%s/rules.json" %
                              self.segment_id, json.dumps(body))
def add_rulegroup ( self , rulegroup ) : body = rulegroup response = self . _post ( "/segments/%s/rules.json" % self . segment_id , json . dumps ( body ) )
Adds a rulegroup to this segment.