From d525aa09517356762b09acd286615c1027fcb2a7 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 8 Feb 2014 22:53:05 +0200 Subject: Added check for valid Apple device --- gsxws/products.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gsxws') diff --git a/gsxws/products.py b/gsxws/products.py index 38a0b7a..db2d7da 100644 --- a/gsxws/products.py +++ b/gsxws/products.py @@ -181,6 +181,10 @@ class Product(object): def is_ios(self): 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 -- cgit v1.2.3