Skip to content

Instantly share code, notes, and snippets.

@etagwerker
Created April 19, 2012 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etagwerker/2420319 to your computer and use it in GitHub Desktop.
Save etagwerker/2420319 to your computer and use it in GitHub Desktop.
An in-memory database for a gem for ISO standards
# 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