Sha256: e43750e69e2f238dd349fde4e398c718dfa27f2c307c6c2f57a906b293d449f0
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
module Fe class PaymentQuestion < Question def response(answer_sheet=nil) return Payment.new unless answer_sheet answer_sheet.payments || [Payment.new(:answer_sheetlication_id => answer_sheet.id) ] end def display_response(answer_sheet=nil) response(answer_sheet).to_s end def has_response?(answer_sheet = nil) if answer_sheet answer_sheet.payments.length > 0 else false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fe-0.0.4 | app/models/fe/payment_question.rb |