lib/billomat/actions/uncancel.rb in billomat-0.2.0 vs lib/billomat/actions/uncancel.rb in billomat-0.3.0
- old
+ new
@@ -1,32 +1,29 @@
# frozen_string_literal: true
module Billomat
module Actions
- ##
# This actions uncancels an canceld invoice.
#
# @example
# Billomat::Actions::Uncancel.new('1235')
class Uncancel
- # @param [String] invoice_id The invoice ID
- #
+ # @param invoice_id [String] the invoice ID
# @return [Billomat::Actions::Uncancel]
def initialize(invoice_id)
@invoice_id = invoice_id
end
- ##
- # Calls the gateway
+ # Calls the gateway.
#
# @return [TrueClass]
def call
Billomat::Gateway.new(:put, path).run
true
end
- # @return [String] The path for the uncancel action
+ # @return [String] the path for the uncancel action
def path
"/invoices/#{@invoice_id}/uncancel"
end
end
end