Class: PhlexForms::Inference::Result
- Inherits:
-
Data
- Object
- Data
- PhlexForms::Inference::Result
- Defined in:
- lib/phlex_forms/inference.rb
Instance Attribute Summary collapse
-
#as ⇒ Object
readonly
Returns the value of attribute as.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#multiple ⇒ Object
readonly
Returns the value of attribute multiple.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#required ⇒ Object
readonly
Returns the value of attribute required.
Class Method Summary collapse
Instance Attribute Details
#as ⇒ Object (readonly)
Returns the value of attribute as
23 24 25 |
# File 'lib/phlex_forms/inference.rb', line 23 def as @as end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
23 24 25 |
# File 'lib/phlex_forms/inference.rb', line 23 def attributes @attributes end |
#choices ⇒ Object (readonly)
Returns the value of attribute choices
23 24 25 |
# File 'lib/phlex_forms/inference.rb', line 23 def choices @choices end |
#label ⇒ Object (readonly)
Returns the value of attribute label
23 24 25 |
# File 'lib/phlex_forms/inference.rb', line 23 def label @label end |
#multiple ⇒ Object (readonly)
Returns the value of attribute multiple
23 24 25 |
# File 'lib/phlex_forms/inference.rb', line 23 def multiple @multiple end |
#name ⇒ Object (readonly)
Returns the value of attribute name
23 24 25 |
# File 'lib/phlex_forms/inference.rb', line 23 def name @name end |
#required ⇒ Object (readonly)
Returns the value of attribute required
23 24 25 |
# File 'lib/phlex_forms/inference.rb', line 23 def required @required end |
Class Method Details
.blank(as:, name:) ⇒ Object
24 25 26 |
# File 'lib/phlex_forms/inference.rb', line 24 def self.blank(as:, name:) new(as:, name:, label: nil, choices: nil, attributes: {}, multiple: false, required: nil) end |