Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

DictObject

Christian Cuevas edited this page Apr 25, 2017 · 16 revisions

What is DictObject?

DictObject is a class within gamelocker which converts a python dictionary into a object.

Example:

The DictObject class could turn the following dictionary into an object:

{"id": "123456789", "name": "ClarkthyLord", "region": "na", "titles": ["developer", "creator"], "extra": {"likes": "vainglory"}}

Uses

Tired of having to type ["key_name"] every time you want to retrieve data?
Then the DictObject class is perfect for you! Turning that dictionary into an object can save you the trouble of typing the [""]

  • Before

    data["name"]

  • After

    data.name

Notice

DictObject is still in testing; use at your own risk!

Clone this wiki locally