Module: SellObject::ShoppingUol
- Defined in:
- lib/sell_object/shopping_uol.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#to_shopping_uol ⇒ Object
Instance methods added on inclusion.
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/sell_object/shopping_uol.rb', line 3 def self.included(base) base.extend ClassMethods end |
.wrap_xml(elements) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/sell_object/shopping_uol.rb', line 7 def self.wrap_xml(elements) %Q{ <?xml version="1.0" encoding="iso-8859-1" ?> <PRODUTOS> #{elements} </PRODUTOS> } end |
Instance Method Details
#to_shopping_uol ⇒ Object
Instance methods added on inclusion
26 27 28 |
# File 'lib/sell_object/shopping_uol.rb', line 26 def to_shopping_uol self.class.to_shopping_uol [self] end |