Class: Clickwrap::Presenter::Statement

Inherits:
Data
  • Object
show all
Defined in:
lib/clickwrap/presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#assertionObject (readonly)

Returns the value of attribute assertion

Returns:

  • (Object)

    the current value of assertion



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def assertion
  @assertion
end

#choicesObject (readonly)

Returns the value of attribute choices

Returns:

  • (Object)

    the current value of choices



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def choices
  @choices
end

#control_idObject (readonly)

Returns the value of attribute control_id

Returns:

  • (Object)

    the current value of control_id



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def control_id
  @control_id
end

#control_nameObject (readonly)

Returns the value of attribute control_name

Returns:

  • (Object)

    the current value of control_name



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def control_name
  @control_name
end

#documentsObject (readonly)

Returns the value of attribute documents

Returns:

  • (Object)

    the current value of documents



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def documents
  @documents
end

#error_idObject (readonly)

Returns the value of attribute error_id

Returns:

  • (Object)

    the current value of error_id



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def error_id
  @error_id
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def key
  @key
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def kind
  @kind
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def label
  @label
end

#optionalObject (readonly)

Returns the value of attribute optional

Returns:

  • (Object)

    the current value of optional



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def optional
  @optional
end

#purpose_keyObject (readonly)

Returns the value of attribute purpose_key

Returns:

  • (Object)

    the current value of purpose_key



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def purpose_key
  @purpose_key
end

#requiredObject (readonly)

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def required
  @required
end

#requires_an_explicit_choiceObject (readonly)

Returns the value of attribute requires_an_explicit_choice

Returns:

  • (Object)

    the current value of requires_an_explicit_choice



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def requires_an_explicit_choice
  @requires_an_explicit_choice
end

#withdrawal_pathObject (readonly)

Returns the value of attribute withdrawal_path

Returns:

  • (Object)

    the current value of withdrawal_path



25
26
27
# File 'lib/clickwrap/presenter.rb', line 25

def withdrawal_path
  @withdrawal_path
end

Instance Method Details

#checkbox?Boolean

Returns:

  • (Boolean)


31
# File 'lib/clickwrap/presenter.rb', line 31

def checkbox? = choices.nil?

#optional?Boolean

Returns:

  • (Boolean)


29
# File 'lib/clickwrap/presenter.rb', line 29

def optional? = optional

#required?Boolean

Returns:

  • (Boolean)


28
# File 'lib/clickwrap/presenter.rb', line 28

def required? = required

#requires_an_explicit_choice?Boolean

Returns:

  • (Boolean)


30
# File 'lib/clickwrap/presenter.rb', line 30

def requires_an_explicit_choice? = requires_an_explicit_choice