Class: MCFDI::Complement

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

Overview

Complement Class

Instance Attribute Summary collapse

Instance Method Summary collapse

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_stampObject

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_numObject

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_stampObject

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_dateObject

Returns the value of attribute stamp_date.



13
14
15
# File 'lib/m_cfdi/complement.rb', line 13

def stamp_date
  @stamp_date
end

#uuidObject

Returns the value of attribute uuid.



13
14
15
# File 'lib/m_cfdi/complement.rb', line 13

def uuid
  @uuid
end

#versionObject

Returns the value of attribute version.



13
14
15
# File 'lib/m_cfdi/complement.rb', line 13

def version
  @version
end

Instance Method Details

#stringObject



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