Added support for the finishes attribute

This commit is contained in:
NandaScott 2021-09-06 12:08:26 -04:00
parent 5fc3e4f458
commit 4e74177207
1 changed files with 11 additions and 0 deletions

View File

@ -760,3 +760,14 @@ class CardsObject(FoundationObject):
super(CardsObject, self)._checkForKey('image_status') super(CardsObject, self)._checkForKey('image_status')
return self.scryfallJson['image_status'] return self.scryfallJson['image_status']
def finishes(self):
"""A list of computer-readable flags that indicate if this card
can come in foil, nonfoil, etched, or glossy finishes.
Returns:
list: A list of all finishes.
"""
super(CardsObject, self)._checkForKey('finishes')
return self.scryfallJson['finishes']