I\'ve got below if block:
scoring = if match_invoice_number(resource) 3 elsif match_amount(resource) && match_vendor(resource)