Class: Cetustek::CancelAllowance

Inherits:
Object
  • Object
show all
Defined in:
lib/cetustek/cancel_allowance.rb

Overview

2.10 CancelAllowance 作廢折讓單. Returns the result code (C0 = success).

Instance Method Summary collapse

Constructor Details

#initialize(allowance_number, reason) ⇒ CancelAllowance

Returns a new instance of CancelAllowance.



9
10
11
12
# File 'lib/cetustek/cancel_allowance.rb', line 9

def initialize(allowance_number, reason)
  @allowance_number = allowance_number
  @reason = reason
end

Instance Method Details

#executeObject



14
15
16
17
# File 'lib/cetustek/cancel_allowance.rb', line 14

def execute
  perform
  @response.body[:cancel_allowance_response][:return]
end