Class: All
- Inherits:
-
Expression
- Object
- Expression
- All
- Defined in:
- lib/interpreter.rb
Instance Method Summary collapse
Instance Method Details
#evaluate(page) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/interpreter.rb', line 8 def evaluate(page) returning result = [] do (page/"tr.ticket_row").each do |ticket| result.push Ticket.new((ticket/"td.number/a").first.inner_html, (ticket/"td.summary/a").first.inner_html, (ticket/"td.status/a").first.inner_html, (ticket/"td.assigned_to_id/a").first.inner_html) end end end |