Class: Odin::Forms::PageTemplate

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

Overview

A page template instantiated for region overflow continuation pages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, page_template:, continues:, form_id:, elements:) ⇒ PageTemplate

Returns a new instance of PageTemplate.



79
80
81
82
83
84
85
# File 'lib/odin/forms/types.rb', line 79

def initialize(name:, page_template:, continues:, form_id:, elements:)
  @name = name
  @page_template = page_template
  @continues = continues
  @form_id = form_id
  @elements = elements
end

Instance Attribute Details

#continuesObject (readonly)

Returns the value of attribute continues.



77
78
79
# File 'lib/odin/forms/types.rb', line 77

def continues
  @continues
end

#elementsObject (readonly)

Returns the value of attribute elements.



77
78
79
# File 'lib/odin/forms/types.rb', line 77

def elements
  @elements
end

#form_idObject (readonly)

Returns the value of attribute form_id.



77
78
79
# File 'lib/odin/forms/types.rb', line 77

def form_id
  @form_id
end

#nameObject (readonly)

Returns the value of attribute name.



77
78
79
# File 'lib/odin/forms/types.rb', line 77

def name
  @name
end

#page_templateObject (readonly)

Returns the value of attribute page_template.



77
78
79
# File 'lib/odin/forms/types.rb', line 77

def page_template
  @page_template
end