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
25
26
27
|
# File 'lib/quovo/models/challenge.rb', line 25
def choices
@choices.cast(Choice)
end
|
#image ⇒ Object
20
21
22
|
# File 'lib/quovo/models/challenge.rb', line 20
def image
@image.cast(Image)
end
|
#image_choices ⇒ Object
30
31
32
|
# File 'lib/quovo/models/challenge.rb', line 30
def image_choices
@image_choices.cast(Image)
end
|