Sha256: ef3de5344faa4eb718b6afaca694963b77d407c8ed2672c44af4e2a6f221bf1e

Contents?: true

Size: 172 Bytes

Versions: 5

Compression:

Stored size: 172 Bytes

Contents

class CreateInvoiceInteractor < Zertico::Interactor
  def perform(attributes)
    @invoice = Invoice.create(attributes)
  end

  def rollback
    @invoice.destroy
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zertico-2.0.0.beta.1 spec/fake_app/app/interactors/create_invoice_interactor.rb
zertico-2.0.0.alpha.3 spec/fake_app/app/interactors/create_invoice_interactor.rb
zertico-2.0.0.alpha.2 spec/fake_app/app/interactors/create_invoice_interactor.rb
zertico-2.0.0.alpha.1 spec/fake_app/app/interactors/create_invoice_interactor.rb
zertico-1.3.0 spec/fake_app/interactors/create_invoice_interactor.rb