Module: DPay::PayoutFeeMode
- Defined in:
- lib/dpay/payment/payout_fee_mode.rb,
sig/dpay/payment/payout_fee_mode.rbs
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.assert_valid(value) ⇒ void
This method returns an undefined value.
14 15 16 |
# File 'lib/dpay/payment/payout_fee_mode.rb', line 14 def self.assert_valid(value) raise InvalidArgumentError, %(Invalid payout fee mode "#{value}") unless valid?(value) end |
.valid?(value) ⇒ Boolean
10 11 12 |
# File 'lib/dpay/payment/payout_fee_mode.rb', line 10 def self.valid?(value) ALL.include?(value) end |