unitex-webservice/objectify.py

18 lines
395 B
Python
Raw Normal View History

2017-10-25 19:08:32 +00:00
#!/usr/bin/env python3
2017-09-02 05:04:28 +00:00
# -*- encoding: utf-8 -*-
2017-10-25 19:08:32 +00:00
__author__ = "Adler Neves"
__email__ = "adlerosn@gmail.com"
__title__ = None
__description__ = None
__license__ = 'MIT'
__copyright__ = 'Copyright 2017 Adler O. S. Neves'
__version__ = '0.0.1'
2017-09-02 05:04:28 +00:00
class Objectify(object):
def __init__(self, d: dict):
self.__dict__ = d
@property
def as_dict(self):
return self.__dict__