Class: Formalist::RichText::EmbeddedFormsContainer::Registration
- Inherits:
-
Object
- Object
- Formalist::RichText::EmbeddedFormsContainer::Registration
- Defined in:
- lib/formalist/rich_text/embedded_forms_container/registration.rb
Constant Summary collapse
- DEFAULT_INPUT_PROCESSOR =
-> input { input }.freeze
Instance Attribute Summary collapse
-
#form ⇒ Object
readonly
Returns the value of attribute form.
-
#input_processor ⇒ Object
readonly
Returns the value of attribute input_processor.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#preview_image_url ⇒ Object
readonly
Returns the value of attribute preview_image_url.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(label:, form:, schema:, preview_image_url: nil, input_processor: DEFAULT_INPUT_PROCESSOR) ⇒ Registration
constructor
A new instance of Registration.
- #to_h ⇒ Object
Constructor Details
#initialize(label:, form:, schema:, preview_image_url: nil, input_processor: DEFAULT_INPUT_PROCESSOR) ⇒ Registration
13 14 15 16 17 18 19 |
# File 'lib/formalist/rich_text/embedded_forms_container/registration.rb', line 13 def initialize(label:, form:, schema:, preview_image_url: nil, input_processor: DEFAULT_INPUT_PROCESSOR) @label = label @form = form @schema = schema @input_processor = input_processor @preview_image_url = preview_image_url end |
Instance Attribute Details
#form ⇒ Object (readonly)
Returns the value of attribute form.
8 9 10 |
# File 'lib/formalist/rich_text/embedded_forms_container/registration.rb', line 8 def form @form end |
#input_processor ⇒ Object (readonly)
Returns the value of attribute input_processor.
10 11 12 |
# File 'lib/formalist/rich_text/embedded_forms_container/registration.rb', line 10 def input_processor @input_processor end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
7 8 9 |
# File 'lib/formalist/rich_text/embedded_forms_container/registration.rb', line 7 def label @label end |
#preview_image_url ⇒ Object (readonly)
Returns the value of attribute preview_image_url.
11 12 13 |
# File 'lib/formalist/rich_text/embedded_forms_container/registration.rb', line 11 def preview_image_url @preview_image_url end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
9 10 11 |
# File 'lib/formalist/rich_text/embedded_forms_container/registration.rb', line 9 def schema @schema end |
Instance Method Details
#to_h ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/formalist/rich_text/embedded_forms_container/registration.rb', line 21 def to_h { label: label, form: form, schema: schema, input_processor: input_processor, preview_image_url: preview_image_url } end |