Class: MaxMindDB::Result::Postal

Inherits:
Object
  • Object
show all
Defined in:
lib/maxminddb/result/postal.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Postal

Returns a new instance of Postal.



4
5
6
# File 'lib/maxminddb/result/postal.rb', line 4

def initialize(raw)
  @raw = raw || {}
end

Instance Method Details

#codeObject



8
9
10
# File 'lib/maxminddb/result/postal.rb', line 8

def code
  raw['code']
end