Module: GradebookMethods

Defined in:
lib/kuali-sakai-common-lib/gradebook.rb

Instance Method Summary collapse

Instance Method Details

#due_date(assignment) ⇒ Object

Returns the due date value for the specified assignment.



19
20
21
# File 'lib/kuali-sakai-common-lib/gradebook.rb', line 19

def due_date(assignment)
  frm.table(:class=>"listHier lines nolines").row(:text=>/#{Regexp.escape(assignment)}/)[3].text
end

#items_titlesObject



3
4
5
6
7
8
9
10
# File 'lib/kuali-sakai-common-lib/gradebook.rb', line 3

def items_titles
  titles = []
  items_table = frm.table(:class=>"listHier lines nolines")
  1.upto(items_table.rows.size-1) do |x|
    titles << items_table.row(:index=>x).a(:index=>0).text
  end
  return titles
end

#released_to_students(assignment) ⇒ Object

Returns the value of the “Released to Students” column for the specified assignment title.



14
15
16
# File 'lib/kuali-sakai-common-lib/gradebook.rb', line 14

def released_to_students(assignment)
  frm.table(:class=>"listHier lines nolines").row(:text=>/#{Regexp.escape(assignment)}/)[4].text
end