Class: Nfe::Webservices::Wsinfo::Event
- Defined in:
- lib/nfe/webservices/wsinfo/event.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(environment, uf, event_kind) ⇒ Event
constructor
A new instance of Event.
- #schema ⇒ Object
Methods inherited from Base
#namespace, #service, #url, #version
Constructor Details
#initialize(environment, uf, event_kind) ⇒ Event
Returns a new instance of Event.
5 6 7 8 9 10 11 12 |
# File 'lib/nfe/webservices/wsinfo/event.rb', line 5 def initialize(environment, uf, event_kind) super(environment, uf) @service = :nfe_recepcao_evento @namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento" @version = "1.00" @event_kind = event_kind @wsdl_service = :event end |
Instance Method Details
#schema ⇒ Object
14 15 16 |
# File 'lib/nfe/webservices/wsinfo/event.rb', line 14 def schema @event_kind == :cce ? "envCCe_v1.00.xsd" : "envEventoCancNFe_v1.00.xsd" end |