diff options
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/helpers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tablib/helpers.py b/tablib/helpers.py index a3b94b3..31b4558 100644 --- a/tablib/helpers.py +++ b/tablib/helpers.py @@ -15,6 +15,10 @@ class Struct(object): def __getitem__(self, key): return getattr(self, key, None) + def dictionary(self): + """Returns dictionary representation of object.""" + return self.__dict__ + def piped(): """Returns piped input via stdin, else False.""" |
