Class: ComplianceQuestionsObject
- Inherits:
-
Object
- Object
- ComplianceQuestionsObject
- Includes:
- DataFactory, DateFactory, Foundry, Navigation
- Defined in:
- lib/kuality-coeus/data_objects/proposal_development/compliance_questions.rb
Instance Attribute Summary collapse
-
#agree_to_ethical_conduct ⇒ Object
Returns the value of attribute agree_to_ethical_conduct.
-
#conduct_review_date ⇒ Object
Returns the value of attribute conduct_review_date.
-
#document_id ⇒ Object
Returns the value of attribute document_id.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(browser, opts = {}) ⇒ ComplianceQuestionsObject
constructor
A new instance of ComplianceQuestionsObject.
Methods included from Navigation
#doc_search, #fill_out, #fill_out_item, #on_document?, #on_page?, #open_document
Methods included from Utilities
#get, #make_user, #random_percentage, #set, #snake_case
Constructor Details
#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 |
Instance Attribute Details
#agree_to_ethical_conduct ⇒ Object
Returns the value of attribute agree_to_ethical_conduct.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/proposal_development/compliance_questions.rb', line 8 def agree_to_ethical_conduct @agree_to_ethical_conduct end |
#conduct_review_date ⇒ Object
Returns the value of attribute conduct_review_date.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/proposal_development/compliance_questions.rb', line 8 def conduct_review_date @conduct_review_date end |
#document_id ⇒ Object
Returns the value of attribute document_id.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/proposal_development/compliance_questions.rb', line 8 def document_id @document_id end |
Instance Method Details
#create ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/kuality-coeus/data_objects/proposal_development/compliance_questions.rb', line 27 def create navigate on Questions do |cq| cq.show_compliance_questions fill_out cq, :agree_to_ethical_conduct, :conduct_review_date cq.save end end |