cfdi 0.0.9 → 0.1.0

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.
@@ -0,0 +1,461 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: CFDI::Concepto
8
+
9
+ &mdash; Documentation by YARD 0.8.7.2
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (C)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../CFDI.html" title="CFDI (module)">CFDI</a></span></span>
36
+ &raquo;
37
+ <span class="title">Concepto</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: CFDI::Concepto
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName"><span class='object_link'><a href="ElementoComprobante.html" title="CFDI::ElementoComprobante (class)">ElementoComprobante</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next"><span class='object_link'><a href="ElementoComprobante.html" title="CFDI::ElementoComprobante (class)">ElementoComprobante</a></span></li>
82
+
83
+ <li class="next">CFDI::Concepto</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/concepto.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Un concepto del comprobante</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+ <h2>
124
+ Instance Method Summary
125
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
126
+ </h2>
127
+
128
+ <ul class="summary">
129
+
130
+ <li class="public ">
131
+ <span class="summary_signature">
132
+
133
+ <a href="#cantidad%3D-instance_method" title="#cantidad= (instance method)">- (Integer) <strong>cantidad=</strong>(qty) </a>
134
+
135
+
136
+
137
+ </span>
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+ <span class="summary_desc"><div class='inline'>
148
+ <p>Asigna la cantidad de (tipo) de este concepto.</p>
149
+ </div></span>
150
+
151
+ </li>
152
+
153
+
154
+ <li class="public ">
155
+ <span class="summary_signature">
156
+
157
+ <a href="#importe-instance_method" title="#importe (instance method)">- (Float) <strong>importe</strong> </a>
158
+
159
+
160
+
161
+ </span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>El importe de este concepto.</p>
173
+ </div></span>
174
+
175
+ </li>
176
+
177
+
178
+ <li class="public ">
179
+ <span class="summary_signature">
180
+
181
+ <a href="#valorUnitario%3D-instance_method" title="#valorUnitario= (instance method)">- (Float) <strong>valorUnitario=</strong>(dineros) </a>
182
+
183
+
184
+
185
+ </span>
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+ <span class="summary_desc"><div class='inline'>
196
+ <p>Aigna el valor unitario de este concepto.</p>
197
+ </div></span>
198
+
199
+ </li>
200
+
201
+
202
+ </ul>
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="ElementoComprobante.html" title="CFDI::ElementoComprobante (class)">ElementoComprobante</a></span></h3>
215
+ <p class="inherited"><span class='object_link'><a href="ElementoComprobante.html#data-class_method" title="CFDI::ElementoComprobante.data (method)">data</a></span>, <span class='object_link'><a href="ElementoComprobante.html#initialize-instance_method" title="CFDI::ElementoComprobante#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="ElementoComprobante.html#to_h-instance_method" title="CFDI::ElementoComprobante#to_h (method)">#to_h</a></span></p>
216
+ <div id="constructor_details" class="method_details_list">
217
+ <h2>Constructor Details</h2>
218
+
219
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="ElementoComprobante.html#initialize-instance_method" title="CFDI::ElementoComprobante#initialize (method)">CFDI::ElementoComprobante</a></span></p>
220
+
221
+ </div>
222
+
223
+
224
+ <div id="instance_method_details" class="method_details_list">
225
+ <h2>Instance Method Details</h2>
226
+
227
+
228
+ <div class="method_details first">
229
+ <h3 class="signature first" id="cantidad=-instance_method">
230
+
231
+ - (<tt>Integer</tt>) <strong>cantidad=</strong>(qty)
232
+
233
+
234
+
235
+
236
+
237
+ </h3><div class="docstring">
238
+ <div class="discussion">
239
+
240
+ <p>Asigna la cantidad de (tipo) de este concepto</p>
241
+
242
+
243
+ </div>
244
+ </div>
245
+ <div class="tags">
246
+ <p class="tag_title">Parameters:</p>
247
+ <ul class="param">
248
+
249
+ <li>
250
+
251
+ <span class='name'>qty</span>
252
+
253
+
254
+ <span class='type'>(<tt>Integer</tt>, <tt>String</tt>, <tt>#to_i</tt>)</span>
255
+
256
+
257
+
258
+ &mdash;
259
+ <div class='inline'>
260
+ <p>La cantidad, que ahuevo queremos en int, porque no, no podemos vender 1.5
261
+ Kilos de verga…</p>
262
+ </div>
263
+
264
+ </li>
265
+
266
+ </ul>
267
+
268
+ <p class="tag_title">Returns:</p>
269
+ <ul class="return">
270
+
271
+ <li>
272
+
273
+
274
+ <span class='type'>(<tt>Integer</tt>)</span>
275
+
276
+
277
+
278
+ &mdash;
279
+ <div class='inline'>
280
+ <p>La cantidad</p>
281
+ </div>
282
+
283
+ </li>
284
+
285
+ </ul>
286
+
287
+ </div><table class="source_code">
288
+ <tr>
289
+ <td>
290
+ <pre class="lines">
291
+
292
+
293
+ 46
294
+ 47
295
+ 48
296
+ 49</pre>
297
+ </td>
298
+ <td>
299
+ <pre class="code"><span class="info file"># File 'lib/concepto.rb', line 46</span>
300
+
301
+ <span class='kw'>def</span> <span class='id identifier rubyid_cantidad='>cantidad=</span> <span class='id identifier rubyid_qty'>qty</span>
302
+ <span class='ivar'>@cantidad</span> <span class='op'>=</span> <span class='id identifier rubyid_qty'>qty</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
303
+ <span class='ivar'>@cantidad</span>
304
+ <span class='kw'>end</span></pre>
305
+ </td>
306
+ </tr>
307
+ </table>
308
+ </div>
309
+
310
+ <div class="method_details ">
311
+ <h3 class="signature " id="importe-instance_method">
312
+
313
+ - (<tt><span class='object_link'><a href="../Float.html" title="Float (class)">Float</a></span></tt>) <strong>importe</strong>
314
+
315
+
316
+
317
+
318
+
319
+ </h3><div class="docstring">
320
+ <div class="discussion">
321
+
322
+ <p>El importe de este concepto</p>
323
+
324
+
325
+ </div>
326
+ </div>
327
+ <div class="tags">
328
+
329
+ <p class="tag_title">Returns:</p>
330
+ <ul class="return">
331
+
332
+ <li>
333
+
334
+
335
+ <span class='type'>(<tt><span class='object_link'><a href="../Float.html" title="Float (class)">Float</a></span></tt>)</span>
336
+
337
+
338
+
339
+ &mdash;
340
+ <div class='inline'>
341
+ <p>El valor unitario multiplicado por la cantidad</p>
342
+ </div>
343
+
344
+ </li>
345
+
346
+ </ul>
347
+
348
+ </div><table class="source_code">
349
+ <tr>
350
+ <td>
351
+ <pre class="lines">
352
+
353
+
354
+ 37
355
+ 38
356
+ 39</pre>
357
+ </td>
358
+ <td>
359
+ <pre class="code"><span class="info file"># File 'lib/concepto.rb', line 37</span>
360
+
361
+ <span class='kw'>def</span> <span class='id identifier rubyid_importe'>importe</span>
362
+ <span class='kw'>return</span> <span class='ivar'>@valorUnitario</span><span class='op'>*</span><span class='ivar'>@cantidad</span>
363
+ <span class='kw'>end</span></pre>
364
+ </td>
365
+ </tr>
366
+ </table>
367
+ </div>
368
+
369
+ <div class="method_details ">
370
+ <h3 class="signature " id="valorUnitario=-instance_method">
371
+
372
+ - (<tt><span class='object_link'><a href="../Float.html" title="Float (class)">Float</a></span></tt>) <strong>valorUnitario=</strong>(dineros)
373
+
374
+
375
+
376
+
377
+
378
+ </h3><div class="docstring">
379
+ <div class="discussion">
380
+
381
+ <p>Aigna el valor unitario de este concepto</p>
382
+
383
+
384
+ </div>
385
+ </div>
386
+ <div class="tags">
387
+ <p class="tag_title">Parameters:</p>
388
+ <ul class="param">
389
+
390
+ <li>
391
+
392
+ <span class='name'>dineros</span>
393
+
394
+
395
+ <span class='type'>(<tt>String</tt>, <tt><span class='object_link'><a href="../Float.html" title="Float (class)">Float</a></span></tt>, <tt>#to_f</tt>)</span>
396
+
397
+
398
+
399
+ &mdash;
400
+ <div class='inline'>
401
+ <p>Cualquier cosa que responda a #to_f</p>
402
+ </div>
403
+
404
+ </li>
405
+
406
+ </ul>
407
+
408
+ <p class="tag_title">Returns:</p>
409
+ <ul class="return">
410
+
411
+ <li>
412
+
413
+
414
+ <span class='type'>(<tt><span class='object_link'><a href="../Float.html" title="Float (class)">Float</a></span></tt>)</span>
415
+
416
+
417
+
418
+ &mdash;
419
+ <div class='inline'>
420
+ <p>El valor unitario como Float</p>
421
+ </div>
422
+
423
+ </li>
424
+
425
+ </ul>
426
+
427
+ </div><table class="source_code">
428
+ <tr>
429
+ <td>
430
+ <pre class="lines">
431
+
432
+
433
+ 28
434
+ 29
435
+ 30
436
+ 31</pre>
437
+ </td>
438
+ <td>
439
+ <pre class="code"><span class="info file"># File 'lib/concepto.rb', line 28</span>
440
+
441
+ <span class='kw'>def</span> <span class='id identifier rubyid_valorUnitario='>valorUnitario=</span> <span class='id identifier rubyid_dineros'>dineros</span>
442
+ <span class='ivar'>@valorUnitario</span> <span class='op'>=</span> <span class='id identifier rubyid_dineros'>dineros</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span>
443
+ <span class='ivar'>@valorUnitario</span>
444
+ <span class='kw'>end</span></pre>
445
+ </td>
446
+ </tr>
447
+ </table>
448
+ </div>
449
+
450
+ </div>
451
+
452
+ </div>
453
+
454
+ <div id="footer">
455
+ Generated on Wed Oct 30 20:47:07 2013 by
456
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
457
+ 0.8.7.2 (ruby-2.0.0).
458
+ </div>
459
+
460
+ </body>
461
+ </html>