Skip to content

Instantly share code, notes, and snippets.

@traviskroberts
Forked from anonymous/Refactor.rb
Created February 18, 2009 14:29
Show Gist options
  • Save traviskroberts/66358 to your computer and use it in GitHub Desktop.
Save traviskroberts/66358 to your computer and use it in GitHub Desktop.
def rebate_status(rebate_claim)
case rebate_claim.status
when 0
output = "New Claim"
when 1
output = "Pending LT Verification"
when 2
output = "Pending Property Verification"
when 3
output = "Disputed"
when 4
output = "Approved"
when 5
output = "Rejected"
else
output = "Status Not Available"
end
output
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment