lib/geonames_api/entity.rb in geonames_api-0.1.1 vs lib/geonames_api/entity.rb in geonames_api-0.1.2

- old
+ new

@@ -22,11 +22,11 @@ return unless @response.has_key? key aliases = [] value = @response[key] parsed_value = case (key) - when 'geonames', 'streetSegment' - aliases = [:geonames, :results] + when 'geonames', 'streetSegment', 'postalcodes' + aliases = [:geonames, :results, :postalcodes] value.map { |ea| self.class.new(ea) } when 'alternateNames' AlternateNames.new(value) when 'timezone' TimeZone.new(value)