Class: NFe::Transportadora
- Inherits:
-
EntidadeNFe
- Object
- EntidadeNFe
- NFe::Transportadora
- Defined in:
- lib/nfe/entidades/infNFe/transp/transportadora.rb
Instance Attribute Summary collapse
-
#CNPJ ⇒ Object
Returns the value of attribute CNPJ.
-
#IE ⇒ Object
Returns the value of attribute IE.
-
#UF ⇒ Object
Returns the value of attribute UF.
-
#xEnder ⇒ Object
Returns the value of attribute xEnder.
-
#xMun ⇒ Object
Returns the value of attribute xMun.
-
#xNome ⇒ Object
Returns the value of attribute xNome.
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
#CNPJ ⇒ Object
Returns the value of attribute CNPJ.
5 6 7 |
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 5 def CNPJ @CNPJ end |
#IE ⇒ Object
Returns the value of attribute IE.
7 8 9 |
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 7 def IE @IE end |
#UF ⇒ Object
Returns the value of attribute UF.
10 11 12 |
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 10 def UF @UF end |
#xEnder ⇒ Object
Returns the value of attribute xEnder.
8 9 10 |
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 8 def xEnder @xEnder end |
#xMun ⇒ Object
Returns the value of attribute xMun.
9 10 11 |
# File 'lib/nfe/entidades/infNFe/transp/transportadora.rb', line 9 def xMun @xMun end |
#xNome ⇒ Object
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
#attributes ⇒ Object
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 |