I tried to get rid of this `switch` when implementing the [same callback](https://github.com/neighborly/neighborly-balanced-creditcard/blob/d9960ec37322d4a5a07a51d9dad20e738b4dc1da/app/assets/javascripts/neighborly/balanced/creditcard/payments.js.coffee.erb#L59-L62) on credit card's gem, but I couldn't find a functional way to do it.

My idea is to do something like this:

```coffeescript
balanced.bankAccount.create bankAccountData, (response) ->
  this["balanced_callback_for_#{response.status}"](response)
```