Class: MCFDI::Complement
Overview
Complement Class
Instance Attribute Summary collapse
-
#cfd_stamp ⇒ Object
Returns the value of attribute cfd_stamp.
-
#sat_certificate_num ⇒ Object
Returns the value of attribute sat_certificate_num.
-
#sat_stamp ⇒ Object
Returns the value of attribute sat_stamp.
-
#stamp_date ⇒ Object
Returns the value of attribute stamp_date.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Complement
constructor
A new instance of Complement.
- #string ⇒ Object
Methods inherited from Base
attr_accessor, attributes, #attributes, #to_h
Constructor Details
#initialize(args = {}) ⇒ Complement
Returns a new instance of Complement.
16 17 18 |
# File 'lib/m_cfdi/complement.rb', line 16 def initialize(args = {}) args.each { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#cfd_stamp ⇒ Object
Returns the value of attribute cfd_stamp.
13 14 15 |
# File 'lib/m_cfdi/complement.rb', line 13 def cfd_stamp @cfd_stamp end |
#sat_certificate_num ⇒ Object
Returns the value of attribute sat_certificate_num.
13 14 15 |
# File 'lib/m_cfdi/complement.rb', line 13 def sat_certificate_num @sat_certificate_num end |
#sat_stamp ⇒ Object
Returns the value of attribute sat_stamp.
13 14 15 |
# File 'lib/m_cfdi/complement.rb', line 13 def sat_stamp @sat_stamp end |
#stamp_date ⇒ Object
Returns the value of attribute stamp_date.
13 14 15 |
# File 'lib/m_cfdi/complement.rb', line 13 def stamp_date @stamp_date end |
#uuid ⇒ Object
Returns the value of attribute uuid.
13 14 15 |
# File 'lib/m_cfdi/complement.rb', line 13 def uuid @uuid end |
#version ⇒ Object
Returns the value of attribute version.
13 14 15 |
# File 'lib/m_cfdi/complement.rb', line 13 def version @version end |
Instance Method Details
#string ⇒ Object
20 21 22 23 |
# File 'lib/m_cfdi/complement.rb', line 20 def string a = [@version, @uuid, @stamp_date, @cfd_stamp, @sat_certificate_num] "||#{a.join('|')}||" end |