Class: RequestPage
- Inherits:
-
Object
- Object
- RequestPage
- Defined in:
- lib/trackit_scraper/2003.10.1/lib/request_page.rb
Instance Method Summary collapse
- #get_request ⇒ Object
-
#initialize(b) ⇒ RequestPage
constructor
A new instance of RequestPage.
Constructor Details
#initialize(b) ⇒ RequestPage
Returns a new instance of RequestPage.
6 7 8 |
# File 'lib/trackit_scraper/2003.10.1/lib/request_page.rb', line 6 def initialize(b) @b = b end |
Instance Method Details
#get_request ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/trackit_scraper/2003.10.1/lib/request_page.rb', line 10 def get_request return if request_not_found? request_info_table = RequestInfoTable.new @b.tables[1] request_history_table = RequestHistoryTable.new @b.tables[3] r = { id: request_id } r.merge! request_info_table.get_request_info r.merge! request_history_table.get_resolution_info r end |