Class: AssignedTo

Inherits:
Expression show all
Defined in:
lib/interpreter.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(tickets, to) ⇒ Object

Searches tickets by assigned user



52
53
54
55
56
# File 'lib/interpreter.rb', line 52

def evaluate(tickets, to)
  returning result = [] do
    tickets.each { |t| result.push(t) if t.assigned_to == to }
  end
end