Class: Odin::Forms::OdinForm
- Inherits:
-
Object
- Object
- Odin::Forms::OdinForm
- Defined in:
- lib/odin/forms/types.rb
Overview
Root parsed form document.
Instance Attribute Summary collapse
-
#i18n ⇒ Object
readonly
Returns the value of attribute i18n.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#page_defaults ⇒ Object
readonly
Returns the value of attribute page_defaults.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
-
#screen ⇒ Object
readonly
Returns the value of attribute screen.
-
#templates ⇒ Object
readonly
Returns the value of attribute templates.
Instance Method Summary collapse
-
#initialize(metadata:, page_defaults:, screen:, i18n:, pages:, templates:) ⇒ OdinForm
constructor
A new instance of OdinForm.
Constructor Details
#initialize(metadata:, page_defaults:, screen:, i18n:, pages:, templates:) ⇒ OdinForm
Returns a new instance of OdinForm.
92 93 94 95 96 97 98 99 |
# File 'lib/odin/forms/types.rb', line 92 def initialize(metadata:, page_defaults:, screen:, i18n:, pages:, templates:) @metadata = @page_defaults = page_defaults @screen = screen @i18n = i18n @pages = pages @templates = templates end |
Instance Attribute Details
#i18n ⇒ Object (readonly)
Returns the value of attribute i18n.
90 91 92 |
# File 'lib/odin/forms/types.rb', line 90 def i18n @i18n end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
90 91 92 |
# File 'lib/odin/forms/types.rb', line 90 def @metadata end |
#page_defaults ⇒ Object (readonly)
Returns the value of attribute page_defaults.
90 91 92 |
# File 'lib/odin/forms/types.rb', line 90 def page_defaults @page_defaults end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
90 91 92 |
# File 'lib/odin/forms/types.rb', line 90 def pages @pages end |
#screen ⇒ Object (readonly)
Returns the value of attribute screen.
90 91 92 |
# File 'lib/odin/forms/types.rb', line 90 def screen @screen end |
#templates ⇒ Object (readonly)
Returns the value of attribute templates.
90 91 92 |
# File 'lib/odin/forms/types.rb', line 90 def templates @templates end |