diff options
author | Filipp Lepalaan <f@230.to> | 2014-02-08 22:53:05 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2014-02-08 22:53:05 +0200 |
commit | d525aa09517356762b09acd286615c1027fcb2a7 (patch) | |
tree | f5060b456dca63e51e8fe10df07d456eb0d599d9 /gsxws/products.py | |
parent | d54b9fbaefb042c3c5610c42664bbfe3bade11dc (diff) | |
download | py-gsxws-d525aa09517356762b09acd286615c1027fcb2a7.tar.gz py-gsxws-d525aa09517356762b09acd286615c1027fcb2a7.tar.bz2 py-gsxws-d525aa09517356762b09acd286615c1027fcb2a7.zip |
Added check for valid Apple device
Diffstat (limited to 'gsxws/products.py')
-rw-r--r-- | gsxws/products.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gsxws/products.py b/gsxws/products.py index 38a0b7a..db2d7da 100644 --- a/gsxws/products.py +++ b/gsxws/products.py @@ -182,6 +182,10 @@ class Product(object): return self.is_iphone or self.is_ipad @property + def is_valid(self): + return self.is_iphone or self.is_ipad or self.is_mac + + @property def has_warranty(self): return self.warrantyDetails.limitedWarranty |