Module: DPay::IpnType
- Defined in:
- lib/dpay/ipn/ipn_type.rb,
sig/dpay/ipn/ipn_type.rbs
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.assert_valid(value) ⇒ void
This method returns an undefined value.
15 16 17 |
# File 'lib/dpay/ipn/ipn_type.rb', line 15 def self.assert_valid(value) raise InvalidArgumentError, %(Invalid IPN type "#{value}") unless valid?(value) end |
.valid?(value) ⇒ Boolean
11 12 13 |
# File 'lib/dpay/ipn/ipn_type.rb', line 11 def self.valid?(value) ALL.include?(value) end |