Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Jun 4, 2024
2 parents 0039c4d + 4c8267e commit 84f67f9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions itunes_app_scraper/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@

class AppStoreUtils:
"""
Helper class to access the names of the other classes
Helper class to access the names of the other classes
"""

def get_entries(self, clazz_name):
@staticmethod
def get_entries(clazz_name):
"""
Get the members and their names from the function
Get the members and their names from the function
:param object clazz_name: the class object be called.
:returns object method_names: a JSON representation of the names.
:param object clazz_name: the class object be called.
:returns object method_names: a JSON representation of the names.
"""
method_names = {}
methods = {}
for collection in dir(clazz_name):
if not collection.startswith('__'):
method_names[str(collection.replace('_', ' '))] = getattr(clazz_name, str(collection))
return json.dumps({'names': method_names})
methods[str(collection)] = getattr(clazz_name, str(collection))
return methods

class AppStoreCollections:
"""
Expand Down Expand Up @@ -290,4 +290,4 @@ class AppStoreException(Exception):
'tr', # Turkey
'ua', # Ukraine
'us', # United States of America
]
]

0 comments on commit 84f67f9

Please sign in to comment.