class Nfe::Operations::ServiceStatus
Public Class Methods
new(certificate, private_key, environment, uf, use_schema: true)
click to toggle source
Calls superclass method
Nfe::Operations::Base::new
# File lib/nfe/operations/service_status.rb, line 6 def initialize(certificate, private_key, environment, uf, use_schema: true) super(certificate, private_key, use_schema: use_schema) @uf = uf @environment = environment end
Protected Instance Methods
before_execute()
click to toggle source
# File lib/nfe/operations/service_status.rb, line 14 def before_execute @object = object_to_send end
handle_result(xml)
click to toggle source
# File lib/nfe/operations/service_status.rb, line 18 def handle_result(xml) @result = Services::Regress::RetConsStatServ.new xml end
schema_name()
click to toggle source
# File lib/nfe/operations/service_status.rb, line 26 def schema_name ws_info.schema end
ws_info()
click to toggle source
# File lib/nfe/operations/service_status.rb, line 30 def ws_info Webservices::Wsinfo::ServiceStatus.new(@environment, @uf) end
xpath()
click to toggle source
# File lib/nfe/operations/service_status.rb, line 22 def xpath "//ns:retConsStatServ" end
Private Instance Methods
object_to_send()
click to toggle source
# File lib/nfe/operations/service_status.rb, line 35 def object_to_send consSitNFe = Services::Dispatch::ConsStatServ.new consSitNFe.versao = ws_info.version consSitNFe.tpAmb = @environment consSitNFe.uf = @uf consSitNFe end