lib/onix/sender_identifier.rb in onix-0.4.7 vs lib/onix/sender_identifier.rb in onix-0.5.0
- old
+ new
@@ -1,9 +1,11 @@
module ONIX
class SenderIdentifier
include ROXML
- xml_accessor :sender_id_type, :from => "SenderIDType"
+ xml_name "SenderIdentifier"
+
+ xml_accessor :sender_id_type, :from => "SenderIDType", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit
xml_accessor :id_type_name, :from => "IDTypeName"
xml_accessor :id_value, :from => "IDValue"
end
end