Class: NFe::Emitente
- Inherits:
-
EntidadeNFe
- Object
- EntidadeNFe
- NFe::Emitente
- Defined in:
- lib/nfe/entidades/infNFe/emit/emitente.rb
Instance Attribute Summary collapse
-
#CNAE ⇒ Object
Returns the value of attribute CNAE.
-
#CNPJ ⇒ Object
Returns the value of attribute CNPJ.
-
#CRT ⇒ Object
Returns the value of attribute CRT.
-
#endereco_emitente ⇒ Object
Returns the value of attribute endereco_emitente.
-
#enderEmit ⇒ Object
Returns the value of attribute enderEmit.
-
#IE ⇒ Object
Returns the value of attribute IE.
-
#IM ⇒ Object
Returns the value of attribute IM.
-
#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
#CNAE ⇒ Object
Returns the value of attribute CNAE.
9 10 11 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 9 def CNAE @CNAE end |
#CNPJ ⇒ Object
Returns the value of attribute CNPJ.
4 5 6 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 4 def CNPJ @CNPJ end |
#CRT ⇒ Object
Returns the value of attribute CRT.
10 11 12 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 10 def CRT @CRT end |
#endereco_emitente ⇒ Object
Returns the value of attribute endereco_emitente.
11 12 13 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 11 def endereco_emitente @endereco_emitente end |
#enderEmit ⇒ Object
Returns the value of attribute enderEmit.
6 7 8 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 6 def enderEmit @enderEmit end |
#IE ⇒ Object
Returns the value of attribute IE.
7 8 9 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 7 def IE @IE end |
#IM ⇒ Object
Returns the value of attribute IM.
8 9 10 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 8 def IM @IM end |
#xNome ⇒ Object
Returns the value of attribute xNome.
5 6 7 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 5 def xNome @xNome end |
Instance Method Details
#attributes ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 17 def attributes @attributes = { "CNPJ" => CNPJ, "xNome" => xNome, "enderEmit" => enderEmit, "IE" => IE, "IM" => IM, "CNAE" => CNAE, "CRT" => CRT, } #@endereco_emitente = @endereco_emitente.serealize(enderEmit) end |
#attributes=(params) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 30 def attributes=(params) @attributes = { "CNPJ" => params["CNPJ"], "xNome" => params["xNome"], "enderEmit" => params["enderEmit"], "IE" => params["IE"], "IM" => params["IM"], "CNAE" => params["CNAE"], "CRT" => params["CRT"] } end |
#initializer ⇒ Object
13 14 15 |
# File 'lib/nfe/entidades/infNFe/emit/emitente.rb', line 13 def initializer self.endereco_emitente = NFe::EnderecoEmitente.new end |