def city
      @city ||= begin
        attrs = Hash[weather_node.attributes.map {|k, v| [k, v.value]}]
        City.new(attrs['weathercityname'], attrs)
      end
    end
def city
      @city ||= begin
        attrs = Hash[weather_node.attributes.map {|k, v| [k, v.value]}]
        City.new(attrs['weathercityname'], attrs)
      end
    end
Ruby 2.0.0 version has no `Nokogiri::XML::Element#to_h`.