Class: AskAwesomely::Field::Statement

Inherits:
Field
  • Object
show all
Defined in:
lib/ask_awesomely/field/statement.rb

Constant Summary

Constants inherited from Field

Field::VALID_FIELD_TYPES

Instance Attribute Summary

Attributes inherited from Field

#state

Instance Method Summary collapse

Methods inherited from Field

#ask, #description, of_type, #ref, #required, #skip, #tags

Methods included from JsonBuilder

#build_json

Constructor Details

#initializeStatement

Returns a new instance of Statement.



4
5
6
# File 'lib/ask_awesomely/field/statement.rb', line 4

def initialize(*)
  super
end

Instance Method Details

#button_text(text) ⇒ Object



12
13
14
# File 'lib/ask_awesomely/field/statement.rb', line 12

def button_text(text)
  @state.button_text = text
end

#no_quotation_marksObject



8
9
10
# File 'lib/ask_awesomely/field/statement.rb', line 8

def no_quotation_marks
  @state.hide_marks = true
end