Class: MaxMindDB::Result::Postal
- Inherits:
-
Object
- Object
- MaxMindDB::Result::Postal
- Defined in:
- lib/maxminddb/result/postal.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(raw) ⇒ Postal
constructor
A new instance of Postal.
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
#code ⇒ Object
8 9 10 |
# File 'lib/maxminddb/result/postal.rb', line 8 def code raw['code'] end |