Class: NFe::Transportadora

Inherits:
EntidadeNFe show all
Defined in:
lib/nfe/entidades/infNFe/transp/transportadora.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from EntidadeNFe

nfe_attr, #nfe_attributes, nfe_attrs, #serialize, #to_nfe, #to_nfe_xml, #to_xml, xml_accessor, #xml_to_hash

Instance Attribute Details

#CNPJObject

Returns the value of attribute CNPJ.



5
6
7
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 5

def CNPJ
  @CNPJ
end

#IEObject

Returns the value of attribute IE.



7
8
9
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 7

def IE
  @IE
end

#UFObject

Returns the value of attribute UF.



10
11
12
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 10

def UF
  @UF
end

#xEnderObject

Returns the value of attribute xEnder.



8
9
10
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 8

def xEnder
  @xEnder
end

#xMunObject

Returns the value of attribute xMun.



9
10
11
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 9

def xMun
  @xMun
end

#xNomeObject

Returns the value of attribute xNome.



6
7
8
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 6

def xNome
  @xNome
end

Instance Method Details

#attributesObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 12

def attributes
  @attributes = {
      "CNPJ" => CNPJ,
      "xNome" => xNome,
      "IE" => IE,
      "xEnder" => xEnder,
      "xMun" => xMun,
      "UF" => UF
    }
end

#attributes=(params) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 23

def attributes=(params)
  @attributes = {
      "CNPJ" => params["CNPJ"],
      "xNome" => params["xNome"],
      "IE" => params["IE"],
      "xEnder" => params["xEnder"],
      "xMun" => params["xMun"],
      "UF" => params["UF"]
    }
end