Skip to content

Commit

Permalink
Make structure family a property on the client side
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaruland committed Jan 11, 2024
1 parent adf5c0a commit 33a78e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tiled/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ def uri(self):
"Direct link to this entry"
return self.item["links"]["self"]

@property
def structure_family(self):
"Quick access to this entry"
return self.item["attributes"]["structure_family"]

def new_variation(self, structure_clients=UNCHANGED, **kwargs):
"""
This is intended primarily for internal use and use by subclasses.
Expand Down

0 comments on commit 33a78e2

Please sign in to comment.