Sha256: a0dadb3df0bf06e9463e8d17d6fd78cf9eaee3393b4bab9926957fa8b35f7ae1

Contents?: true

Size: 700 Bytes

Versions: 9

Compression:

Stored size: 700 Bytes

Contents

module Formalist
  module RichText
    class EmbeddedFormsContainer
      class Registration
        DEFAULT_INPUT_PROCESSOR = -> input { input }.freeze

        attr_reader :label
        attr_reader :form
        attr_reader :schema
        attr_reader :input_processor

        def initialize(label:, form:, schema:, input_processor: DEFAULT_INPUT_PROCESSOR)
          @label = label
          @form = form
          @schema = schema
          @input_processor = input_processor
        end

        def to_h
          {
            label: label,
            form: form,
            schema: schema,
            input_processor: input_processor,
          }
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
formalist-0.6.0 lib/formalist/rich_text/embedded_forms_container/registration.rb
formalist-0.5.4 lib/formalist/rich_text/embedded_forms_container/registration.rb
formalist-0.5.3 lib/formalist/rich_text/embedded_forms_container/registration.rb
formalist-0.5.2 lib/formalist/rich_text/embedded_forms_container/registration.rb
formalist-0.5.1 lib/formalist/rich_text/embedded_forms_container/registration.rb
formalist-0.5.0 lib/formalist/rich_text/embedded_forms_container/registration.rb
formalist-0.4.2 lib/formalist/rich_text/embedded_forms_container/registration.rb
formalist-0.4.1 lib/formalist/rich_text/embedded_forms_container/registration.rb
formalist-0.4.0 lib/formalist/rich_text/embedded_forms_container/registration.rb