Class: FlowEngine::Introduction
- Inherits:
-
Data
- Object
- Data
- FlowEngine::Introduction
- Defined in:
- lib/flowengine/introduction.rb
Overview
Immutable introduction configuration for a flow. When present in a Definition, indicates the UI should collect free-form text before the first step. The label is shown above the input field; the placeholder appears inside it. maxlength limits the character count of the free-form text (nil = unlimited).
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#maxlength ⇒ Object
readonly
Returns the value of attribute maxlength.
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Instance Method Summary collapse
-
#initialize(label:, placeholder: "", maxlength: nil) ⇒ Introduction
constructor
A new instance of Introduction.
Constructor Details
#initialize(label:, placeholder: "", maxlength: nil) ⇒ Introduction
Returns a new instance of Introduction.
9 10 11 12 |
# File 'lib/flowengine/introduction.rb', line 9 def initialize(label:, placeholder: "", maxlength: nil) super freeze end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label
8 9 10 |
# File 'lib/flowengine/introduction.rb', line 8 def label @label end |
#maxlength ⇒ Object (readonly)
Returns the value of attribute maxlength
8 9 10 |
# File 'lib/flowengine/introduction.rb', line 8 def maxlength @maxlength end |
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder
8 9 10 |
# File 'lib/flowengine/introduction.rb', line 8 def placeholder @placeholder end |