lib/dineromail/buyer.rb in dineromail-0.0.4 vs lib/dineromail/buyer.rb in dineromail-0.1.0

- old
+ new

@@ -1,12 +1,15 @@ module Dineromail class Buyer - attr_accessor :email, :address, :name, :phone, :document_type, :document_number, :comment + include HappyMapper - def initialize(attributes = {}) - attributes.each do |name, value| - send("#{name}=", value) - end - end + tag 'COMPRADOR' + element :email, String, :tag => 'EMAIL' + element :address, String, :tag => 'DIRECCION' + element :name, String, :tag => 'NOMBRE' + element :phone, String, :tag => 'TELEFONO' + element :document_type, String, :tag => 'TIPODOC' + element :document_number, String, :tag => 'NUMERODOC' + element :comment, String, :tag => 'COMENTARIO' end end \ No newline at end of file