lib/onix/stock.rb in onix-0.4.7 vs lib/onix/stock.rb in onix-0.5.0
- old
+ new
@@ -1,8 +1,10 @@
module ONIX
class Stock
include ROXML
+ xml_name "Stock"
+
# NOTE: these *should* be numeric fields according to the spec,
# but heaps of ONIX files in the wild use text
xml_accessor :on_hand, :from => "OnHand"
xml_accessor :on_order, :from => "OnOrder"
end