Class: NfeReader::Importation
- Inherits:
-
Object
- Object
- NfeReader::Importation
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/product/importation.rb
Overview
Declaração de Importação
Constant Summary
Constants included from AttributeHelper
Instance Attribute Summary collapse
-
#addition_descount ⇒ Object
readonly
Returns the value of attribute addition_descount.
-
#addition_number ⇒ Object
readonly
Returns the value of attribute addition_number.
-
#addition_sequence ⇒ Object
readonly
Returns the value of attribute addition_sequence.
-
#afrmm ⇒ Object
readonly
Returns the value of attribute afrmm.
-
#cnpj ⇒ Object
readonly
Returns the value of attribute cnpj.
-
#customs_clearance ⇒ Object
readonly
Returns the value of attribute customs_clearance.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#drawn ⇒ Object
readonly
Returns the value of attribute drawn.
-
#exporter ⇒ Object
readonly
Returns the value of attribute exporter.
-
#intermediate_kind ⇒ Object
readonly
Returns the value of attribute intermediate_kind.
-
#local ⇒ Object
readonly
Returns the value of attribute local.
-
#manufacturer ⇒ Object
readonly
Returns the value of attribute manufacturer.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#transport ⇒ Object
readonly
Returns the value of attribute transport.
-
#uf_customer ⇒ Object
readonly
Returns the value of attribute uf_customer.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Importation
constructor
A new instance of Importation.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Importation
Returns a new instance of Importation.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nfe_reader/product/importation.rb', line 11 def initialize(attrs = {}) # Número do Documento de Importação @number = attrs[:nDI] # Data de Registro do documento @date = attrs[:dDI] # Local de desembaraço @local = attrs[:xLocDesemb] # Sigla da UF onde ocorreu o Desembaraço Aduaneiro @state = attrs[:UFDesemb] # Data do Desembaraço Aduaneiro @customs_clearance = attrs[:dDesemb] # Código do Exportador @exporter = attrs[:cExportador] # Via de transporte internacional @transport = attrs[:tpViaTransp] # Valor da AFRMM - Adicional ao Frete para Renovação da Marinha Mercante @afrmm = attrs[:vAFRMM] # Forma de importação @intermediate_kind = attrs[:tpIntermedio] # CNPJ do adquirente @cnpj = attrs[:CNPJ] # Sigla da UF @uf_customer = attrs[:UFTerceiro] # Adições if attrs[:adi] # Numero da Adição @addition_number = attrs[:adi][:nAdicaonSeqAdic] # Numero sequencial do item @addition_sequence = attrs[:adi][:nSeqAdic] # Código do fabricante estrangeiro @manufacturer = attrs[:adi][:cFabricante] # Valor do desconto do item @addition_descount = attrs[:adi][:vDescDI] # Drawback @drawn = attrs[:adi][:nDraw] end end |
Instance Attribute Details
#addition_descount ⇒ Object (readonly)
Returns the value of attribute addition_descount.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def addition_descount @addition_descount end |
#addition_number ⇒ Object (readonly)
Returns the value of attribute addition_number.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def addition_number @addition_number end |
#addition_sequence ⇒ Object (readonly)
Returns the value of attribute addition_sequence.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def addition_sequence @addition_sequence end |
#afrmm ⇒ Object (readonly)
Returns the value of attribute afrmm.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def afrmm @afrmm end |
#cnpj ⇒ Object (readonly)
Returns the value of attribute cnpj.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def cnpj @cnpj end |
#customs_clearance ⇒ Object (readonly)
Returns the value of attribute customs_clearance.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def customs_clearance @customs_clearance end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def date @date end |
#drawn ⇒ Object (readonly)
Returns the value of attribute drawn.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def drawn @drawn end |
#exporter ⇒ Object (readonly)
Returns the value of attribute exporter.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def exporter @exporter end |
#intermediate_kind ⇒ Object (readonly)
Returns the value of attribute intermediate_kind.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def intermediate_kind @intermediate_kind end |
#local ⇒ Object (readonly)
Returns the value of attribute local.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def local @local end |
#manufacturer ⇒ Object (readonly)
Returns the value of attribute manufacturer.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def manufacturer @manufacturer end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def number @number end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def state @state end |
#transport ⇒ Object (readonly)
Returns the value of attribute transport.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def transport @transport end |
#uf_customer ⇒ Object (readonly)
Returns the value of attribute uf_customer.
7 8 9 |
# File 'lib/nfe_reader/product/importation.rb', line 7 def uf_customer @uf_customer end |