Closed naomiperez closed 12 months ago
Merging #133 (99bc61d) into master (8158ae5) will decrease coverage by
0.20%
. The diff coverage is68.57%
.
The question about having a parent class with type and status. I think this depends of the level of abstraction we are doing. When I specced the tickets I tried to come up with a generic class that wraps all the concepts but none of the components share any other attribute or a term in common. The only shared the openability status and all belong to a car, the former is more a composition relation.
The question about having a parent class with type and status. I think this depends of the level of abstraction we are doing. When I specced the tickets I tried to come up with a generic class that wraps all the concepts but none of the components share any other attribute or a term in common. The only shared the openability status and all belong to a car, the former is more a composition relation.
Makes sense. Yeah, I was alluding to a composition type implementation when I was thinking about it. I think it doesn't really matter here. Just wanted to discuss. I like your reasoning.
This PR will add support for getting the lock status of a vehicle.
We create a new method in the
Vehicle
class calledlockStatus()
that will return aVehicleLockStatus
object containing a propertyisLocked
(true if vehicle is locked), and arrays ofVehicleDoor
VehicleWindow
VehicleStorage
VehicleSunroof
VehicleChargingPort
each of which have a
type
andstatus
.Asana: https://app.asana.com/0/1205281929337658/1205139255747896/f