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 1
1
# -*- coding: utf-8 -*-
2
+ """Count Resource."""
2
3
3
4
from intercom .traits .api_resource import Resource
4
5
5
6
6
7
class 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):
16
16
17
17
def for_type (self , type , count = None ):
18
18
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