Class: NFe::InfoProtocolo
- Inherits:
-
EntidadeNFe
- Object
- EntidadeNFe
- NFe::InfoProtocolo
- Defined in:
- lib/nfe/entidades/protNFe/infProt.rb
Instance Attribute Summary collapse
-
#chNFe ⇒ Object
Returns the value of attribute chNFe.
-
#cStat ⇒ Object
Returns the value of attribute cStat.
-
#dhRecbto ⇒ Object
Returns the value of attribute dhRecbto.
-
#digVal ⇒ Object
Returns the value of attribute digVal.
-
#nProt ⇒ Object
Returns the value of attribute nProt.
-
#tpAmb ⇒ Object
Returns the value of attribute tpAmb.
-
#verAplic ⇒ Object
Returns the value of attribute verAplic.
-
#xMotivo ⇒ Object
Returns the value of attribute xMotivo.
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
#chNFe ⇒ Object
Returns the value of attribute chNFe.
7 8 9 |
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 7 def chNFe @chNFe end |
#cStat ⇒ Object
Returns the value of attribute cStat.
11 12 13 |
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 11 def cStat @cStat end |
#dhRecbto ⇒ Object
Returns the value of attribute dhRecbto.
8 9 10 |
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 8 def dhRecbto @dhRecbto end |
#digVal ⇒ Object
Returns the value of attribute digVal.
10 11 12 |
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 10 def digVal @digVal end |
#nProt ⇒ Object
Returns the value of attribute nProt.
9 10 11 |
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 9 def nProt @nProt end |
#tpAmb ⇒ Object
Returns the value of attribute tpAmb.
5 6 7 |
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 5 def tpAmb @tpAmb end |
#verAplic ⇒ Object
Returns the value of attribute verAplic.
6 7 8 |
# File 'lib/nfe/entidades/protNFe/infProt.rb', line 6 def verAplic @verAplic end |
#xMotivo ⇒ Object
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
#attributes ⇒ Object
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 |