Class: PhlexForms::Inference::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/phlex_forms/inference.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#asObject (readonly)

Returns the value of attribute as

Returns:

  • (Object)

    the current value of as



23
24
25
# File 'lib/phlex_forms/inference.rb', line 23

def as
  @as
end

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



23
24
25
# File 'lib/phlex_forms/inference.rb', line 23

def attributes
  @attributes
end

#choicesObject (readonly)

Returns the value of attribute choices

Returns:

  • (Object)

    the current value of choices



23
24
25
# File 'lib/phlex_forms/inference.rb', line 23

def choices
  @choices
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



23
24
25
# File 'lib/phlex_forms/inference.rb', line 23

def label
  @label
end

#multipleObject (readonly)

Returns the value of attribute multiple

Returns:

  • (Object)

    the current value of multiple



23
24
25
# File 'lib/phlex_forms/inference.rb', line 23

def multiple
  @multiple
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



23
24
25
# File 'lib/phlex_forms/inference.rb', line 23

def name
  @name
end

#requiredObject (readonly)

Returns the value of attribute required

Returns:

  • (Object)

    the current value of 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