Class: NfseCarioca::GerarNfse
- Inherits:
-
Object
- Object
- NfseCarioca::GerarNfse
- Defined in:
- lib/nfse_carioca/gerar_nfse.rb
Defined Under Namespace
Classes: Response
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(invoice) ⇒ GerarNfse
constructor
A new instance of GerarNfse.
- #to_xml ⇒ Object
Constructor Details
#initialize(invoice) ⇒ GerarNfse
Returns a new instance of GerarNfse.
6 7 8 |
# File 'lib/nfse_carioca/gerar_nfse.rb', line 6 def initialize(invoice) @invoice = invoice end |
Instance Method Details
#execute! ⇒ Object
10 11 12 |
# File 'lib/nfse_carioca/gerar_nfse.rb', line 10 def execute! client.call(:gerar_nfse, self) end |
#to_xml ⇒ Object
14 15 16 |
# File 'lib/nfse_carioca/gerar_nfse.rb', line 14 def to_xml GerarNfseXML.new(@invoice).to_xml end |