yhirose/maxminddb — pull request #13 by s2t2 (2014-11-14 02:09:58+00:00)
Title: facilitate calls to result.continent.code

`continent` is one type of `named resource` returned by a given result, except it carries a `code` identifier instead of an `iso_code` identifier.

```` rb
result.continent
=> #"NA", "geoname_id"=>6255149, "names"=>{"de"=>"Nordamerika", "en"=>"North America", "es"=>"Norteamérica", "fr"=>"Amérique du Nord", "ja"=>"北アメリカ", "pt-BR"=>"América do Norte", "ru"=>"Северная Америка", "zh-CN"=>"北美洲"}}>
````

```` rb
result.continent.code
=> NoMethodError: undefined method `code' for #
````

this pull request adds `code` to the list of named methods for a `named resource`.

```` rb
result.continent.code
=> "NA"
````