Class: MCFDI::Transferred
- Inherits:
-
Object
- Object
- MCFDI::Transferred
- 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 = {}) ⇒ Transferred
constructor
A new instance of Transferred.
- #original_string ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Transferred
Returns a new instance of Transferred.
84 85 86 |
# File 'lib/m_cfdi/taxes.rb', line 84 def initialize(args = {}) args.each { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#import ⇒ Object
Returns the value of attribute import.
82 83 84 |
# File 'lib/m_cfdi/taxes.rb', line 82 def import @import end |
#rate ⇒ Object
Returns the value of attribute rate.
82 83 84 |
# File 'lib/m_cfdi/taxes.rb', line 82 def rate @rate end |
#tax ⇒ Object
Returns the value of attribute tax.
82 83 84 |
# File 'lib/m_cfdi/taxes.rb', line 82 def tax @tax end |
Instance Method Details
#original_string ⇒ Object
96 97 98 |
# File 'lib/m_cfdi/taxes.rb', line 96 def original_string [@tax, @rate, @import] end |