bank_account.credit(:amount => (amount*100).to_i)
should do the trick. The error you are getting is warning you from using positional arguments e.g.
def example(positional_arg1, positional_arg2);end
A good example of how to properly use the ruby client can be found here.