Class: CommitteeDocumentObject
- Inherits:
-
Object
- Object
- CommitteeDocumentObject
- Includes:
- DataFactory, Foundry, Navigation, StringFactory
- Defined in:
- lib/kuality-coeus/data_objects/committee_document/committee_document.rb
Instance Attribute Summary collapse
-
#adv_submission_days ⇒ Object
Returns the value of attribute adv_submission_days.
-
#areas_of_research ⇒ Object
Returns the value of attribute areas_of_research.
-
#committee_id ⇒ Object
Returns the value of attribute committee_id.
-
#committee_name ⇒ Object
Returns the value of attribute committee_name.
-
#description ⇒ Object
Returns the value of attribute description.
-
#document_id ⇒ Object
Returns the value of attribute document_id.
-
#home_unit ⇒ Object
Returns the value of attribute home_unit.
-
#initiator ⇒ Object
Returns the value of attribute initiator.
-
#last_updated ⇒ Object
Returns the value of attribute last_updated.
-
#maximum_protocols ⇒ Object
Returns the value of attribute maximum_protocols.
-
#members ⇒ Object
Returns the value of attribute members.
-
#min_members_for_quorum ⇒ Object
Returns the value of attribute min_members_for_quorum.
-
#review_type ⇒ Object
Returns the value of attribute review_type.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_user ⇒ Object
Returns the value of attribute updated_user.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(browser, opts = {}) ⇒ CommitteeDocumentObject
constructor
A new instance of CommitteeDocumentObject.
- #submit ⇒ Object
Methods included from Navigation
#doc_search, #fill_out, #on_document?, #on_page?, #open_document
Methods included from Utilities
#get, #make_role, #make_user, #random_percentage, #set, #snake_case
Constructor Details
#initialize(browser, opts = {}) ⇒ CommitteeDocumentObject
Returns a new instance of CommitteeDocumentObject.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 13 def initialize(browser, opts={}) @browser = browser defaults = { description: random_alphanums, committee_id: random_alphanums, home_unit: '000001', committee_name: random_alphanums, min_members_for_quorum: rand(100).to_s, maximum_protocols: rand(100).to_s, adv_submission_days: rand(365).to_s, review_type: 'Full', members: CommitteeMemberCollection.new, areas_of_research: [], schedule: CommitteeScheduleCollection.new } (defaults.merge(opts)) end |
Instance Attribute Details
#adv_submission_days ⇒ Object
Returns the value of attribute adv_submission_days.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def adv_submission_days @adv_submission_days end |
#areas_of_research ⇒ Object
Returns the value of attribute areas_of_research.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def areas_of_research @areas_of_research end |
#committee_id ⇒ Object
Returns the value of attribute committee_id.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def committee_id @committee_id end |
#committee_name ⇒ Object
Returns the value of attribute committee_name.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def committee_name @committee_name end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def description @description end |
#document_id ⇒ Object
Returns the value of attribute document_id.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def document_id @document_id end |
#home_unit ⇒ Object
Returns the value of attribute home_unit.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def home_unit @home_unit end |
#initiator ⇒ Object
Returns the value of attribute initiator.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def initiator @initiator end |
#last_updated ⇒ Object
Returns the value of attribute last_updated.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def last_updated @last_updated end |
#maximum_protocols ⇒ Object
Returns the value of attribute maximum_protocols.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def maximum_protocols @maximum_protocols end |
#members ⇒ Object
Returns the value of attribute members.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def members @members end |
#min_members_for_quorum ⇒ Object
Returns the value of attribute min_members_for_quorum.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def min_members_for_quorum @min_members_for_quorum end |
#review_type ⇒ Object
Returns the value of attribute review_type.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def review_type @review_type end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def type @type end |
#updated_user ⇒ Object
Returns the value of attribute updated_user.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 8 def updated_user @updated_user end |
Instance Method Details
#create ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 33 def create visit(Research).central_admin on(CentralAdmin).add_irb_committee on Committee do |comm| @document_id=comm.document_id @initiator=comm.initiator @status=comm.status fill_out comm, :description, :committee_id, :committee_name, :type, :home_unit, :min_members_for_quorum, :maximum_protocols, :adv_submission_days, :review_type comm.save end end |
#submit ⇒ Object
47 48 49 50 |
# File 'lib/kuality-coeus/data_objects/committee_document/committee_document.rb', line 47 def submit navigate on(Committee).submit end |