Class: MCFDI::Detained
- Inherits:
-
Object
- Object
- MCFDI::Detained
- Defined in:
- lib/m_cfdi/taxes.rb
Instance Attribute Summary collapse
-
#import ⇒ Object
Returns the value of attribute import.
-
#rate ⇒ Object
Returns the value of attribute rate.
-
#tax ⇒ Object
Returns the value of attribute tax.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Detained
constructor
A new instance of Detained.
- #original_string ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Detained
Returns a new instance of Detained.
104 105 106 |
# File 'lib/m_cfdi/taxes.rb', line 104 def initialize(args = {}) args.each { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#import ⇒ Object
Returns the value of attribute import.
102 103 104 |
# File 'lib/m_cfdi/taxes.rb', line 102 def import @import end |
#rate ⇒ Object
Returns the value of attribute rate.
102 103 104 |
# File 'lib/m_cfdi/taxes.rb', line 102 def rate @rate end |
#tax ⇒ Object
Returns the value of attribute tax.
102 103 104 |
# File 'lib/m_cfdi/taxes.rb', line 102 def tax @tax end |
Instance Method Details
#original_string ⇒ Object
116 117 118 |
# File 'lib/m_cfdi/taxes.rb', line 116 def original_string [@tax, @rate, @import] end |