Class: All
- Inherits:
-
Expression
- Object
- Expression
- All
- Defined in:
- lib/interpreter.rb
Instance Method Summary collapse
-
#evaluate(page) ⇒ Object
Returns all ticket from current space.
Instance Method Details
#evaluate(page) ⇒ Object
Returns all ticket from current space
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/interpreter.rb', line 20 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 |