Class: IRBProtocolDevelopmentObject
- Inherits:
-
Object
- Object
- IRBProtocolDevelopmentObject
- Includes:
- DataFactory, DateFactory, Foundry, Navigation, StringFactory
- Defined in:
- lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#document_id ⇒ Object
Returns the value of attribute document_id.
-
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
-
#funding_number ⇒ Object
Returns the value of attribute funding_number.
-
#funding_type ⇒ Object
Returns the value of attribute funding_type.
-
#initiator ⇒ Object
Returns the value of attribute initiator.
-
#lead_unit ⇒ Object
Returns the value of attribute lead_unit.
-
#organization_document_number ⇒ Object
Returns the value of attribute organization_document_number.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#organization_type ⇒ Object
Returns the value of attribute organization_type.
-
#other_identifier_name ⇒ Object
Returns the value of attribute other_identifier_name.
-
#other_identifier_type ⇒ Object
Returns the value of attribute other_identifier_type.
-
#participant_type ⇒ Object
Returns the value of attribute participant_type.
-
#protocol_number ⇒ Object
Returns the value of attribute protocol_number.
-
#protocol_type ⇒ Object
Returns the value of attribute protocol_type.
-
#source ⇒ Object
Returns the value of attribute source.
-
#status ⇒ Object
Returns the value of attribute status.
-
#submission_status ⇒ Object
Returns the value of attribute submission_status.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(browser, opts = {}) ⇒ IRBProtocolDevelopmentObject
constructor
A new instance of IRBProtocolDevelopmentObject.
Methods included from Navigation
#doc_search, #fill_out, #fill_out_item, #on_document?, #on_page?, #open_document, #window_cleanup
Methods included from Utilities
#get, #make_role, #make_user, #random_percentage, #set, #snake_case
Constructor Details
#initialize(browser, opts = {}) ⇒ IRBProtocolDevelopmentObject
Returns a new instance of IRBProtocolDevelopmentObject.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 14 def initialize(browser, opts={}) @browser = browser defaults = { description: random_alphanums, protocol_type: '::random::', title: random_alphanums, lead_unit: '::random::', } (defaults.merge(opts)) end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def description @description end |
#document_id ⇒ Object
Returns the value of attribute document_id.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def document_id @document_id end |
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def expiration_date @expiration_date end |
#funding_number ⇒ Object
Returns the value of attribute funding_number.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def funding_number @funding_number end |
#funding_type ⇒ Object
Returns the value of attribute funding_type.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def funding_type @funding_type end |
#initiator ⇒ Object
Returns the value of attribute initiator.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def initiator @initiator end |
#lead_unit ⇒ Object
Returns the value of attribute lead_unit.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def lead_unit @lead_unit end |
#organization_document_number ⇒ Object
Returns the value of attribute organization_document_number.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def organization_document_number @organization_document_number end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def organization_id @organization_id end |
#organization_type ⇒ Object
Returns the value of attribute organization_type.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def organization_type @organization_type end |
#other_identifier_name ⇒ Object
Returns the value of attribute other_identifier_name.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def other_identifier_name @other_identifier_name end |
#other_identifier_type ⇒ Object
Returns the value of attribute other_identifier_type.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def other_identifier_type @other_identifier_type end |
#participant_type ⇒ Object
Returns the value of attribute participant_type.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def participant_type @participant_type end |
#protocol_number ⇒ Object
Returns the value of attribute protocol_number.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def protocol_number @protocol_number end |
#protocol_type ⇒ Object
Returns the value of attribute protocol_type.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def protocol_type @protocol_type end |
#source ⇒ Object
Returns the value of attribute source.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def source @source end |
#status ⇒ Object
Returns the value of attribute status.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def status @status end |
#submission_status ⇒ Object
Returns the value of attribute submission_status.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def submission_status @submission_status end |
#title ⇒ Object
Returns the value of attribute title.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 9 def title @title end |
Instance Method Details
#create ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/kuality-coeus/data_objects/compliance_and_protocol/irb_protocol_development.rb', line 27 def create window_cleanup visit(Researcher).create_irb_protocol on ProtocolOverview do |doc| @document_id=doc.document_id @status=doc.document_status @initiator=doc.initiator @submission_status=doc.submission_status @expiration_date=doc.expiration_date doc. fill_out doc, :description, :protocol_type, :title set_lead_unit set_pi doc.save @protocol_number=doc.protocol_number end end |