From a454e1d6048617e55e1e8f164b13964828e67b84 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Wed, 14 Jan 2026 17:21:03 -0700 Subject: [PATCH] Fixed palette model to be a Struct Necessary since some keys might be missing so this'll ensure those keys default to `nil`. Milestone: patch --- lib/trmnl/api/models/palette.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trmnl/api/models/palette.rb b/lib/trmnl/api/models/palette.rb index a7ca6ca..bd53e2f 100644 --- a/lib/trmnl/api/models/palette.rb +++ b/lib/trmnl/api/models/palette.rb @@ -4,7 +4,7 @@ module TRMNL module API module Models # Models the data of the API response. - Palette = Data.define :id, :name, :grays, :colors, :framework_class do + Palette = Struct.new :id, :name, :grays, :colors, :framework_class do def self.for(attributes) = new(**attributes) end end