Module: SellObject::ShoppingUol::ClassMethods

Defined in:
lib/sell_object/shopping_uol.rb

Instance Method Summary collapse

Instance Method Details

#to_shopping_uol(objects) ⇒ Object

Class methods added on inclusion



18
19
20
21
# File 'lib/sell_object/shopping_uol.rb', line 18

def to_shopping_uol(objects)
  elements = objects.map {|obj| SellObject::XmlFormatter.format obj, :shopping_uol, :PRODUTO }.join ''
  SellObject::ShoppingUol.wrap_xml elements
end