Class: Cetustek::CancelAllowance
- Inherits:
-
Object
- Object
- Cetustek::CancelAllowance
- Defined in:
- lib/cetustek/cancel_allowance.rb
Overview
2.10 CancelAllowance 作廢折讓單. Returns the result code (C0 = success).
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(allowance_number, reason) ⇒ CancelAllowance
constructor
A new instance of CancelAllowance.
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
#execute ⇒ Object
14 15 16 17 |
# File 'lib/cetustek/cancel_allowance.rb', line 14 def execute perform @response.body[:cancel_allowance_response][:return] end |