Class: MCFDI::Transferred

Inherits:
Object
  • Object
show all
Defined in:
lib/m_cfdi/taxes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#importObject

Returns the value of attribute import.



82
83
84
# File 'lib/m_cfdi/taxes.rb', line 82

def import
  @import
end

#rateObject

Returns the value of attribute rate.



82
83
84
# File 'lib/m_cfdi/taxes.rb', line 82

def rate
  @rate
end

#taxObject

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_stringObject



96
97
98
# File 'lib/m_cfdi/taxes.rb', line 96

def original_string
  [@tax, @rate, @import]
end