cfdi 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/lib/cfdi.rb +1 -1
- data/lib/concepto.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0903fc48e49fd6e0f6d553af571fdfb3a0ed404
|
4
|
+
data.tar.gz: b7f831218d630bb45eb73ec91f4bab437c1e196a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b71ad3abe3a7abf869c2ee6599a88315ac3e7cf4333b828d67ac13ebbac1a484f709c7e4e1a663236e939667aecc8dfe05f0583230f75fbd5fe62b35e9f0cfa5
|
7
|
+
data.tar.gz: 8f7a755921d53c0b5cc3f5caaf4cae4f7cb8ca69d6cc906ba70b8cefdd829a2c8769eb32aea32f4f3b5bfd605d387a0e46f110691b3228675070cf0806bd7e00
|
data/lib/cfdi.rb
CHANGED
data/lib/concepto.rb
CHANGED
@@ -19,9 +19,17 @@ module CFDI
|
|
19
19
|
self.importe
|
20
20
|
]
|
21
21
|
end
|
22
|
+
|
23
|
+
# Asigna la descripción de un concepto
|
24
|
+
# @param descricion [String] La descripción del concepto
|
25
|
+
#
|
26
|
+
# @return [String] La descripción como string sin espacios extraños
|
27
|
+
def descripcion= descripcion
|
28
|
+
@descripcion = descripcion.strip
|
29
|
+
@descripcion
|
30
|
+
end
|
22
31
|
|
23
|
-
|
24
|
-
# Aigna el valor unitario de este concepto
|
32
|
+
# Asigna el valor unitario de este concepto
|
25
33
|
# @param dineros [String, Float, #to_f] Cualquier cosa que responda a #to_f
|
26
34
|
#
|
27
35
|
# @return [Float] El valor unitario como Float
|