Class: Billomat::Actions::Uncancel
- Inherits:
-
Object
- Object
- Billomat::Actions::Uncancel
- Defined in:
- lib/billomat/actions/uncancel.rb
Overview
This actions uncancels an canceld invoice.
Instance Method Summary collapse
-
#call ⇒ TrueClass
Calls the gateway.
- #initialize(invoice_id) ⇒ Billomat::Actions::Uncancel constructor
-
#path ⇒ String
The path for the uncancel action.
Constructor Details
#initialize(invoice_id) ⇒ Billomat::Actions::Uncancel
12 13 14 |
# File 'lib/billomat/actions/uncancel.rb', line 12 def initialize(invoice_id) @invoice_id = invoice_id end |
Instance Method Details
#call ⇒ TrueClass
Calls the gateway.
19 20 21 22 23 |
# File 'lib/billomat/actions/uncancel.rb', line 19 def call Billomat::Gateway.new(:put, path).run true end |
#path ⇒ String
Returns the path for the uncancel action.
26 27 28 |
# File 'lib/billomat/actions/uncancel.rb', line 26 def path "/invoices/#{@invoice_id}/uncancel" end |