dtefacil_xml_builder 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ module DtefacilXmlBuilder
6
6
 
7
7
  attr_accessor :descuento, :actividades_economicas, :receptor, :detalles
8
8
 
9
- def set= actividades_economicas, receptor, detalles
9
+ def set_invoice actividades_economicas, receptor, detalles
10
10
  @actividades_economicas=actividades_economicas
11
11
  @r= Receptor.new
12
12
  @r.set_receptor receptor
@@ -5,8 +5,8 @@ module DtefacilXmlBuilder
5
5
  receptor = { :rut => "15842089-9", :razon_social => "Vladimir", :giro => "Computacion", :direccion => "Alameda", :comuna => "Santiago", :ciudad => "Satiago" }
6
6
  detalles = [{:nombre => "Pelota", :cantidad => 3, :precio_unitario => 45}]
7
7
  f = FacturaElectronica.new
8
- f.set= [324], receptor, detalles
9
- body = f.render_xml
8
+ f.set_invoice [324], receptor, detalles
9
+ f.render_xml
10
10
  end
11
11
 
12
12
  def read_dte
@@ -1,3 +1,3 @@
1
1
  module DtefacilXmlBuilder
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtefacil_xml_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: