File tree Expand file tree Collapse file tree 3 files changed +2
-38
lines changed
Expand file tree Collapse file tree 3 files changed +2
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2+ """Count Resource."""
23
34from intercom .traits .api_resource import Resource
45
56
67class Count (Resource ):
7- pass
8-
9- # @classmethod
10- # def fetch_for_app(cls):
11- # return Count.find()
12-
13- # @classmethod
14- # def do_broken_down_count(cls, entity_to_count, count_context):
15- # result = cls.fetch_broken_down_count(entity_to_count, count_context)
16- # return getattr(result, entity_to_count)[count_context]
17-
18- # @classmethod
19- # def fetch_broken_down_count(cls, entity_to_count, count_context):
20- # return Count.find(type=entity_to_count, count=count_context)
8+ """Collection class for Counts."""
Original file line number Diff line number Diff line change @@ -16,12 +16,3 @@ def for_app(self):
1616
1717 def for_type (self , type , count = None ):
1818 return self .find (type = type , count = count )
19-
20- # @classmethod
21- # def do_broken_down_count(cls, entity_to_count, count_context):
22- # result = cls.fetch_broken_down_count(entity_to_count, count_context)
23- # return getattr(result, entity_to_count)[count_context]
24-
25- # @classmethod
26- # def fetch_broken_down_count(cls, entity_to_count, count_context):
27- # return Count.find(type=entity_to_count, count=count_context)
You can’t perform that action at this time.
0 commit comments