lib/onix/title.rb in onix-0.4.7 vs lib/onix/title.rb in onix-0.5.0

- old
+ new

@@ -1,10 +1,12 @@ module ONIX class Title include ROXML - xml_accessor :title_type, :twodigit, :from => "TitleType" - xml_accessor :title_text, :etext, :from => "TitleText" - xml_accessor :subtitle, :etext, :from => "Subtitle" + xml_name "Title" + + xml_accessor :title_type, :from => "TitleType", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit + xml_accessor :title_text, :from => "TitleText" + xml_accessor :subtitle, :from => "Subtitle" end end