Method: ComplianceQuestionsObject#initialize
- Defined in:
- lib/kuality-coeus/data_objects/proposal_development/compliance_questions.rb
#initialize(browser, opts = {}) ⇒ ComplianceQuestionsObject
Returns a new instance of ComplianceQuestionsObject.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/kuality-coeus/data_objects/proposal_development/compliance_questions.rb', line 10 def initialize(browser, opts={}) @browser = browser # PLEASE NOTE: # This is an unusual data object class in that # it breaks the typical model for radio button # methods and their associated class instance variables # # In general, it's not workable to set up radio button elements # to use "Y" and "N" as the instance variables associated with them. defaults = { agree_to_ethical_conduct: 'Y', conduct_review_date: right_now[:date_w_slashes], } (defaults.merge(opts)) requires :document_id end |