diff options
-rw-r--r-- | src/plugins/moc.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/moc.py b/src/plugins/moc.py index 35cca05..709192f 100644 --- a/src/plugins/moc.py +++ b/src/plugins/moc.py @@ -77,7 +77,7 @@ class MOC: # TODO add support for waiting for events def __getitem__(self, key): ''' - Get a detailing + Get a details @param key:str The key @return :str The value associated with the key @@ -90,6 +90,15 @@ class MOC: # TODO add support for waiting for events return self.__info[key] + def keys(self): + ''' + Get available detail keys + + @return :itr<str> The keys + ''' + return self.__info.keys() + + @staticmethod def __interact(*args): ''' |