Class: KualiUniversityQuestionsObject

Inherits:
Object
  • Object
show all
Includes:
DataFactory, Foundry, Navigation
Defined in:
lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {}) ⇒ KualiUniversityQuestionsObject

Returns a new instance of KualiUniversityQuestionsObject.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 11

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.
  #
  # These are set up in this way, however, because of how
  # the HTML elements are being defined.
  defaults = {
    dual_dept_appointment: 'N',
    on_sabbatical:         'N',
    used_by_small_biz:     'N',
    understand_deadline:   'Y'
  }

  set_options(defaults.merge(opts))
  requires :document_id
end

Instance Attribute Details

#deadline_review_dateObject

Returns the value of attribute deadline_review_date.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def deadline_review_date
  @deadline_review_date
end

#document_idObject

Returns the value of attribute document_id.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def document_id
  @document_id
end

#dual_dept_appointmentObject

Returns the value of attribute dual_dept_appointment.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def dual_dept_appointment
  @dual_dept_appointment
end

#dual_dept_explanationObject

Returns the value of attribute dual_dept_explanation.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def dual_dept_explanation
  @dual_dept_explanation
end

#dual_dept_review_dateObject

Returns the value of attribute dual_dept_review_date.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def dual_dept_review_date
  @dual_dept_review_date
end

#on_sabbaticalObject

Returns the value of attribute on_sabbatical.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def on_sabbatical
  @on_sabbatical
end

#sabbatical_review_dateObject

Returns the value of attribute sabbatical_review_date.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def sabbatical_review_date
  @sabbatical_review_date
end

#small_biz_review_dateObject

Returns the value of attribute small_biz_review_date.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def small_biz_review_date
  @small_biz_review_date
end

#understand_deadlineObject

Returns the value of attribute understand_deadline.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def understand_deadline
  @understand_deadline
end

#used_by_small_bizObject

Returns the value of attribute used_by_small_biz.



7
8
9
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 7

def used_by_small_biz
  @used_by_small_biz
end

Instance Method Details

#createObject



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/kuality-coeus/data_objects/proposal_development/kuali_university_questions.rb', line 35

def create
  navigate
  on Questions do |kuali|
    kuali.show_kuali_university
    fill_out kuali, :dual_dept_appointment, :dual_dept_review_date,
             :dual_dept_explanation, :on_sabbatical, :sabbatical_review_date,
             :used_by_small_biz, :small_biz_review_date, :understand_deadline,
             :deadline_review_date
    kuali.save
  end
end