MCPcopy Index your code
hub / github.com/clintecker/python-googleanalytics / DataPoint

Class DataPoint

src/googleanalytics/data.py:23–40  ·  view source on GitHub ↗

docstring for DataPoint

Source from the content-addressed store, hash-verified

21
22
23class DataPoint:
24 """docstring for DataPoint"""
25
26 def __init__(self, account=None, connection=None, title=None, dimensions=None, metrics=None):
27 self.account = account
28 self.connection = connection
29 self.title = title
30 self.dimensions = dimensions
31 self.metrics = metrics
32
33 if len(self.dimensions) == 1:
34 self.dimension = self.dimensions[0]
35
36 if len(self.metrics) == 1:
37 self.metric = self.metrics[0]
38
39 def __repr__(self):
40 return '<DataPoint: %s / %s>' % (self.account.table_id, self.title)

Callers 1

get_dataMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected