Class: CorreiosSigep::Builders::XML::Recipient
- Inherits:
-
Object
- Object
- CorreiosSigep::Builders::XML::Recipient
- Defined in:
- lib/correios_sigep/builders/xml/recipient.rb
Instance Method Summary collapse
- #build_xml ⇒ Object
-
#initialize(builder, recipient) ⇒ Recipient
constructor
A new instance of Recipient.
Constructor Details
#initialize(builder, recipient) ⇒ Recipient
Returns a new instance of Recipient.
5 6 7 8 |
# File 'lib/correios_sigep/builders/xml/recipient.rb', line 5 def initialize(builder, recipient) @builder = builder @recipient = recipient end |
Instance Method Details
#build_xml ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/correios_sigep/builders/xml/recipient.rb', line 10 def build_xml @builder.destinatario do @builder.nome @recipient.name @builder.logradouro @recipient.address @builder.numero @recipient.number @builder.complemento @recipient.complement @builder.bairro @recipient.neighborhood @builder.referencia @recipient.reference @builder.cidade @recipient.city @builder.uf @recipient.state @builder.cep @recipient.postal_code @builder.ddd @recipient.area_code @builder.telefone @recipient.phone @builder.email @recipient.email end end |