Class: MCFDI::Addenda
Overview
Address Class
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#xsd ⇒ Object
Returns the value of attribute xsd.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Addenda
constructor
A new instance of Addenda.
Methods inherited from Base
attr_accessor, attributes, #attributes, #to_h
Constructor Details
#initialize(args = {}) ⇒ Addenda
Returns a new instance of Addenda.
6 7 8 9 10 11 |
# File 'lib/m_cfdi/addenda.rb', line 6 def initialize(args = {}) args.each do |key, value| method = "#{key}=" send(method, value) if self.respond_to? method end end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/m_cfdi/addenda.rb', line 4 def data @data end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/m_cfdi/addenda.rb', line 4 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
4 5 6 |
# File 'lib/m_cfdi/addenda.rb', line 4 def namespace @namespace end |
#xsd ⇒ Object
Returns the value of attribute xsd.
4 5 6 |
# File 'lib/m_cfdi/addenda.rb', line 4 def xsd @xsd end |