Skip to content

Commit

Permalink
Add comment explaining Client._define_request_methods()
Browse files Browse the repository at this point in the history
  • Loading branch information
dinahshi committed Dec 2, 2015
1 parent 61a0d71 commit f98c8aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yelp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def __init__(self, authenticator):
self._error_handler = ErrorHandler()
self._define_request_methods()

# Creates an instance of each endpoint class and adds the instances' public
# singleton methods to Client. We do this to promote modularity.
def _define_request_methods(self):
endpoint_instances = [end(self) for end in self._endpoints]
for endpoint in endpoint_instances:
Expand Down

0 comments on commit f98c8aa

Please sign in to comment.