class NfeReader::Address
Attributes
address[R]
city[R]
city_code[R]
cnpj[R]
complement[R]
country[R]
country_code[R]
cpf[R]
neighborhood[R]
number[R]
phone[R]
state[R]
zip_code[R]
Public Class Methods
new(attrs= {})
click to toggle source
# File lib/nfe_reader/address.rb, line 9 def initialize(attrs= {}) # CNPJ @cnpj = attrs[:CNPJ] # CPF @cpf = attrs[:CPF] # Logradouo @address = attrs[:xLgr] # Numero @number = attrs[:nro] # Complemento @complement = attrs[:xCpl] # Bairro @neighborhood = attrs[:xBairro] # Codigo IBGE Cidade @city_code = attrs[:cMun] # Nome Cidade @city = attrs[:xMun] # CEP @zip_code = attrs[:CEP] # Estado @state = attrs[:UF] # Codigo Pais @country_code = attrs[:cPais] # Pais @country = attrs[:xPais] # Telefone @phone = attrs[:fone] end