-
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathcube_b.py
More file actions
17 lines (14 loc) · 516 Bytes
/
Copy pathcube_b.py
File metadata and controls
17 lines (14 loc) · 516 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# pylint: disable=too-few-public-methods
"A Class of Cube from Company B"
import time
from interface_cube_b import ICubeB
class CubeB(ICubeB):
"A hypothetical Cube tool from company B"
# a static variable indicating the last time a cube was manufactured
last_time = int(time.time())
def create(self, top_left_front, bottom_right_back):
now = int(time.time())
if now > int(CubeB.last_time + 2):
CubeB.last_time = now
return True
return False # busy