Method: NfeReader::Removal#initialize

Defined in:
lib/nfe_reader/removal.rb

#initialize(attrs = {}) ⇒ Removal

Returns a new instance of Removal.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/nfe_reader/removal.rb', line 10

def initialize(attrs = {})
  @cnpj = attrs[:CNPJ]
  @cpf = attrs[:CPF]
  @address = attrs[:xLgr]
  @number = attrs[:nro]
  @complement = attrs[:xCpl]
  @neighborhood = attrs[:xBairro]
  @city_code = attrs[:cMun]
  @city = attrs[:xMun]
  @state = attrs[:UF]
end