Added next_page and warnings to Search().

This commit is contained in:
Nanda Scott 2018-02-06 21:55:24 -05:00
parent 4c045a3fe0
commit 18475cc257
1 changed files with 12 additions and 0 deletions

View File

@ -41,3 +41,15 @@ class Search(ScryfallObject):
return KeyError('This card has no associated data key.') return KeyError('This card has no associated data key.')
return self.scryfallJson['data'] return self.scryfallJson['data']
def next_page(self):
if self.__checkForKey('next_page') is None:
return KeyError('This card has no associated next page key.')
return self.scryfallJson['next_page']
def warnings(self):
if self.__checkForKey('warnings') is None:
return KeyError('This card has no associated warnings key.')
return self.scryfallJson['warnings']