Class: RequestInfoTable
- Inherits:
-
Object
- Object
- RequestInfoTable
- Defined in:
- lib/trackit_scraper/2003.10.1/lib/request_info_table.rb
Instance Method Summary collapse
- #get_request_info ⇒ Object
-
#initialize(table) ⇒ RequestInfoTable
constructor
A new instance of RequestInfoTable.
Constructor Details
#initialize(table) ⇒ RequestInfoTable
Returns a new instance of RequestInfoTable.
3 4 5 |
# File 'lib/trackit_scraper/2003.10.1/lib/request_info_table.rb', line 3 def initialize(table) @cells = table.tds.to_a end |
Instance Method Details
#get_request_info ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/trackit_scraper/2003.10.1/lib/request_info_table.rb', line 7 def get_request_info { title: cell(0), status: cell(2), service: cell(3), request_type: cell(4), time_spent: cell(5), priority: cell(7), deadline: maybe_time_cell(8, 'None'), submitted_to: cell(10), submitted_by: cell(11), submitted_on: time_cell(12), assigned_to: cell(15), assigned_by: cell(16), assigned_on: time_cell(17), department_id: cell(19), closed_by: cell(20), closed_on: maybe_time_cell(21, 'None') } end |