From 8bf5bc30efe58234a19e0f1fbda6f5a4953efaca Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Thu, 5 Sep 2024 13:04:07 +1000 Subject: [PATCH] fix(models/driver): fix role parsing --- src/placeos/api/models/driver.cr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/placeos/api/models/driver.cr b/src/placeos/api/models/driver.cr index 840e469..d5947b6 100644 --- a/src/placeos/api/models/driver.cr +++ b/src/placeos/api/models/driver.cr @@ -13,7 +13,11 @@ module PlaceOS::Client::API::Models getter default_uri : String getter default_port : Int32 - getter role : Role + getter role : Int32 + + def role : Role + Role.from_value(@role) + end # Driver version management