Class: SigepWeb::XML::PostalObject
- Inherits:
-
Object
- Object
- SigepWeb::XML::PostalObject
- Defined in:
- lib/sigep_web/xml/postal_object.rb
Instance Method Summary collapse
- #build_xml ⇒ Object
-
#initialize(builder, postal_objects = []) ⇒ PostalObject
constructor
A new instance of PostalObject.
Constructor Details
#initialize(builder, postal_objects = []) ⇒ PostalObject
Returns a new instance of PostalObject.
6 7 8 9 |
# File 'lib/sigep_web/xml/postal_object.rb', line 6 def initialize(builder, postal_objects = []) @builder = builder @postal_objects = postal_objects end |
Instance Method Details
#build_xml ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/sigep_web/xml/postal_object.rb', line 11 def build_xml @postal_objects.each do |postal_object| @builder.objeto_postal do build_object(postal_object) end end end |