Class: Smartdown::Model::Answer::MultipleChoice
- Inherits:
-
Base
- Object
- Base
- Smartdown::Model::Answer::MultipleChoice
show all
- Defined in:
- lib/smartdown/model/answer/multiple_choice.rb
Instance Attribute Summary
Attributes inherited from Base
#question, #value
Instance Method Summary
collapse
Methods inherited from Base
#<=>, #initialize
Instance Method Details
#humanize ⇒ Object
11
12
13
|
# File 'lib/smartdown/model/answer/multiple_choice.rb', line 11
def humanize
question.choices.fetch(value)
end
|
#value_type ⇒ Object
7
8
9
|
# File 'lib/smartdown/model/answer/multiple_choice.rb', line 7
def value_type
::String
end
|