examples/current_weather.rb in happymapper-0.1.7 vs examples/current_weather.rb in happymapper-0.2.0

- old
+ new

@@ -3,13 +3,13 @@ file_contents = File.read(dir + '/../spec/fixtures/current_weather.xml') class CurrentWeather include HappyMapper - tag 'aws:ob' - element :temperature, Integer, :tag => 'aws:temp' - element :feels_like, Integer, :tag => 'aws:feels-like' - element :current_condition, String, :tag => 'aws:current-condition', :attributes => {:icon => String} + tag 'ob' + element :temperature, Integer, :tag => 'temp' + element :feels_like, Integer, :tag => 'feels-like' + element :current_condition, String, :tag => 'current-condition', :attributes => {:icon => String} end CurrentWeather.parse(file_contents).each do |current_weather| puts "temperature: #{current_weather.temperature}" puts "feels_like: #{current_weather.feels_like}" \ No newline at end of file