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