Module: SellObject::Buscape::ClassMethods

Defined in:
lib/sell_object/buscape.rb

Instance Method Summary collapse

Instance Method Details

#to_buscape(objects, store_name = nil) ⇒ Object

Class methods added on inclusion



31
32
33
34
# File 'lib/sell_object/buscape.rb', line 31

def to_buscape(objects, store_name = nil)
  elements = objects.map {|obj| SellObject::XmlFormatter.format obj, :buscape, :produto, SellObject::Buscape::FormatterProxy.new(obj) }.join ''
  SellObject::Buscape.wrap_xml elements, store_name
end