Skip to content

Instantly share code, notes, and snippets.

@tyronewilson
Last active February 22, 2017 14:26
Show Gist options
  • Save tyronewilson/b6de24ccdd9e39c61533f4faade939b5 to your computer and use it in GitHub Desktop.
Save tyronewilson/b6de24ccdd9e39c61533f4faade939b5 to your computer and use it in GitHub Desktop.
Simple Banking module
app/
models/
user.rb # ActiveRecord
banking/
payment_methods/
bank_account.rb # ActiveRecord
credit_card.rb # ActiveRecord
registration.rb
processing/
base.rb
debit.rb
void.rb
credit.rb
refund.rb
errors/
invalid_amount.rb
invalid_credit_card_number.rb
invalid_routing_number.rb
unregistered_payment_method.rb
transaction.rb # ActiveRecord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment