Class: Odin::Forms::OdinForm

Inherits:
Object
  • Object
show all
Defined in:
lib/odin/forms/types.rb

Overview

Root parsed form document.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#i18nObject (readonly)

Returns the value of attribute i18n.



90
91
92
# File 'lib/odin/forms/types.rb', line 90

def i18n
  @i18n
end

#metadataObject (readonly)

Returns the value of attribute metadata.



90
91
92
# File 'lib/odin/forms/types.rb', line 90

def 
  @metadata
end

#page_defaultsObject (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

#pagesObject (readonly)

Returns the value of attribute pages.



90
91
92
# File 'lib/odin/forms/types.rb', line 90

def pages
  @pages
end

#screenObject (readonly)

Returns the value of attribute screen.



90
91
92
# File 'lib/odin/forms/types.rb', line 90

def screen
  @screen
end

#templatesObject (readonly)

Returns the value of attribute templates.



90
91
92
# File 'lib/odin/forms/types.rb', line 90

def templates
  @templates
end