Class: Quovo::Models::Challenge
- Inherits:
-
Base
- Object
- Base
- Quovo::Models::Challenge
show all
- Defined in:
- lib/quovo/models/challenge.rb
Instance Method Summary
collapse
Methods inherited from Base
#[], fields, #initialize, #to_h, #to_hash
Instance Method Details
#choices ⇒ Object
24
25
26
|
# File 'lib/quovo/models/challenge.rb', line 24
def choices
@choices.cast(Choice)
end
|
#image ⇒ Object
19
20
21
|
# File 'lib/quovo/models/challenge.rb', line 19
def image
@image.cast(Image)
end
|
#image_choices ⇒ Object
29
30
31
|
# File 'lib/quovo/models/challenge.rb', line 29
def image_choices
@image_choices.cast(Image)
end
|