docs: 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))