Class: AssignedTo
- Inherits:
-
Expression
- Object
- Expression
- AssignedTo
- Defined in:
- lib/interpreter.rb
Instance Method Summary collapse
-
#evaluate(tickets, to) ⇒ Object
Searches tickets by assigned user.
Instance Method Details
#evaluate(tickets, to) ⇒ Object
Searches tickets by assigned user
50 51 52 53 54 |
# File 'lib/interpreter.rb', line 50 def evaluate(tickets, to) returning result = [] do tickets.each { |t| result.push(t) if t.assigned_to == to } end end |