Created
December 22, 2011 06:16
-
-
Save smoak/1509207 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Entity: | |
def __init__(self, data): | |
self.data = data | |
class Org(Entity): | |
@property | |
def avatar_url(self): | |
return self.data["avatar_url"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment