Class: VRPayment::PanType
- Inherits:
-
Object
- Object
- VRPayment::PanType
- Defined in:
- lib/vrpayment-ruby-sdk/models/pan_type.rb
Constant Summary collapse
- PLAIN =
'PLAIN'.freeze
- SCHEME_TOKEN =
'SCHEME_TOKEN'.freeze
- SCHEME_TOKEN_CLICK_TO_PAY =
'SCHEME_TOKEN_CLICK_TO_PAY'.freeze
- DEVICE_TOKEN_APPLE_PAY =
'DEVICE_TOKEN_APPLE_PAY'.freeze
- DEVICE_TOKEN_GOOGLE_PAY =
'DEVICE_TOKEN_GOOGLE_PAY'.freeze
- DEVICE_TOKEN_SAMSUNG_PAY =
'DEVICE_TOKEN_SAMSUNG_PAY'.freeze
- DEVICE_TOKEN_ANDROID_PAY =
'DEVICE_TOKEN_ANDROID_PAY'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 37 38 |
# File 'lib/vrpayment-ruby-sdk/models/pan_type.rb', line 34 def build_from_hash(value) constantValues = PanType.constants.select { |c| PanType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PanType" if constantValues.empty? value end |