class NFe::Destinatario

Attributes

CNPJ[RW]
CPF[RW]
IE[RW]
enderDest[RW]
endereco_destinatario[RW]
indIEDest[RW]
xNome[RW]

Public Instance Methods

attributes() click to toggle source
# File lib/nfe/entidades/infNFe/dest/destinatario.rb, line 17
def attributes
  @attributes = {
      "xNome" => xNome,
      "CPF" => CPF,
      "CNPJ" => CNPJ,
      "enderEmit" => @enderEmit,
      "indIEDest" => indIEDest,
      "IE" => IE
    }
end
attributes=(params) click to toggle source
# File lib/nfe/entidades/infNFe/dest/destinatario.rb, line 28
def attributes=(params)
  @attributes = {
      "xNome" => params["razao_social"],
      "CPF" => params["cpf"],
      "CNPJ" => params["cnpj"],
      "enderDest" => params["enderDest"],
      "indIEDest" => params["indIEDest"],
      "IE" => params["IE"],
    }
end
initializer() click to toggle source
# File lib/nfe/entidades/infNFe/dest/destinatario.rb, line 13
def initializer
  self.endereco_destinatario = NFe::EnderecoDestinatario.new
end