mirror of
https://github.com/usetrmnl/terminus.git
synced 2026-08-13 14:29:27 -07:00
Necessary to define what attributes are allowed when exporting a screen template. Milestone: minor
13 lines
274 B
Ruby
13 lines
274 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Terminus
|
|
module Structs
|
|
# The screen template struct.
|
|
class ScreenTemplate < DB::Struct
|
|
def export_attributes = {label:, name:}
|
|
|
|
def screen_attributes = {template_id: id, name:, label:, content:}
|
|
end
|
|
end
|
|
end
|