examples/twitter.rb in oxmlk-0.3.2 vs examples/twitter.rb in oxmlk-0.3.3

- old
+ new

@@ -2,11 +2,11 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec/spec_helper') class User include OxMlk - ox_tag :user + ox_tag :downcase ox_elem :id, :as => Integer ox_elem :name ox_elem :screen_name ox_elem :location @@ -18,11 +18,11 @@ end class Status include OxMlk - ox_tag :status + ox_tag :downcase ox_elem :id, :as => Integer ox_elem :text ox_elem :created_at, :as => Time ox_elem :source @@ -34,10 +34,10 @@ end class Response include OxMlk - ox_tag 'statuses' + ox_tag :statuses ox_elem :statuses, :as => [Status] end response = Response.from_xml(xml_for(:twitter)) \ No newline at end of file