Class: MCFDI::Addenda

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

Overview

Address Class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/m_cfdi/addenda.rb', line 4

def data
  @data
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/m_cfdi/addenda.rb', line 4

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



4
5
6
# File 'lib/m_cfdi/addenda.rb', line 4

def namespace
  @namespace
end

#xsdObject

Returns the value of attribute xsd.



4
5
6
# File 'lib/m_cfdi/addenda.rb', line 4

def xsd
  @xsd
end