Class: PolishPostalCodes::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/polish_postal_codes.rb

Constant Summary collapse

DATA =
PStore.new('lib/polish_postal_codes.pstore')

Class Method Summary collapse

Class Method Details

.get(postal_code) ⇒ Object



8
9
10
# File 'lib/polish_postal_codes.rb', line 8

def self.get(postal_code)
  DATA.transaction(true) { |postal_codes| postal_codes[postal_code] }
end