Created
April 19, 2012 11:15
-
-
Save etagwerker/2420319 to your computer and use it in GitHub Desktop.
An in-memory database for a gem for ISO standards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I'd like an in-memory database to do this | |
ISO4217.create(:code => 'BBD', :num => '052', :separator_digits => '2', :currency => 'Barbados dollar', :locations => ['Barbados']) | |
ISO4217.find(:locations => 'Barbados') | |
=> #<ISO4217:0x007ff62a989b80 @code="BBD" @currency="Barbados dollar"> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment