Class: MCFDI::Detained

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#importObject

Returns the value of attribute import.



102
103
104
# File 'lib/m_cfdi/taxes.rb', line 102

def import
  @import
end

#rateObject

Returns the value of attribute rate.



102
103
104
# File 'lib/m_cfdi/taxes.rb', line 102

def rate
  @rate
end

#taxObject

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_stringObject



116
117
118
# File 'lib/m_cfdi/taxes.rb', line 116

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