Class: AskAwesomely::Field::ShortText

Inherits:
Field
  • Object
show all
Defined in:
lib/ask_awesomely/field/short_text.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, #initialize, of_type, #ref, #required, #skip, #tags

Methods included from JsonBuilder

#build_json

Constructor Details

This class inherits a constructor from AskAwesomely::Field::Field

Instance Method Details

#max_characters(num) ⇒ Object



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

def max_characters(num)
  @state.max_characters = num
end