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
14 15 16 |
# File 'lib/billomat/actions/uncancel.rb', line 14 def initialize(invoice_id) @invoice_id = invoice_id end |
Instance Method Details
#call ⇒ TrueClass
Calls the gateway
22 23 24 25 26 |
# File 'lib/billomat/actions/uncancel.rb', line 22 def call Billomat::Gateway.new(:put, path).run true end |
#path ⇒ String
Returns The path for the uncancel action.
29 30 31 |
# File 'lib/billomat/actions/uncancel.rb', line 29 def path "/invoices/#{@invoice_id}/uncancel" end |