Class: NFe::InfoProtocolo

Inherits:
EntidadeNFe show all
Defined in:
lib/nfe/entidades/protNFe/infProt.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

#chNFeObject

Returns the value of attribute chNFe.



7
8
9
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 7

def chNFe
  @chNFe
end

#cStatObject

Returns the value of attribute cStat.



11
12
13
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 11

def cStat
  @cStat
end

#dhRecbtoObject

Returns the value of attribute dhRecbto.



8
9
10
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 8

def dhRecbto
  @dhRecbto
end

#digValObject

Returns the value of attribute digVal.



10
11
12
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 10

def digVal
  @digVal
end

#nProtObject

Returns the value of attribute nProt.



9
10
11
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 9

def nProt
  @nProt
end

#tpAmbObject

Returns the value of attribute tpAmb.



5
6
7
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 5

def tpAmb
  @tpAmb
end

#verAplicObject

Returns the value of attribute verAplic.



6
7
8
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 6

def verAplic
  @verAplic
end

#xMotivoObject

Returns the value of attribute xMotivo.



12
13
14
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 12

def xMotivo
  @xMotivo
end

Instance Method Details

#attributesObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 14

def attributes
  @attributes = {
      "tpAmb" => tpAmb,
      "verAplic" => verAplic,
      "chNFe" => chNFe,
      "dhRecbto" => dhRecbto,
      "nProt" => nProt,
      "cStat" => cStat,
      "xMotivo" => xMotivo
    }
end

#attributes=(params) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 26

def attributes=(params)
  @attributes = {
      "tpAmb" => params["tpAmb"],
      "verAplic" => params["verAplic"],
      "chNFe" => params["chNFe"],
      "dhRecbto" => params["dhRecbto"],
      "nProt" => params["nProt"],
      "cStat" => params["cStat"],
      "xMotivo" => params["xMotivo"]
    }
end