Class: Komoju::MerchantRole
- Inherits:
-
Object
- Object
- Komoju::MerchantRole
- Defined in:
- lib/komoju-sdk/models/merchant_role.rb
Constant Summary collapse
- SELLER =
"seller".freeze
- PAYOUT =
"payout".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
21 22 23 |
# File 'lib/komoju-sdk/models/merchant_role.rb', line 21 def self.all_vars @all_vars ||= [SELLER, PAYOUT].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
28 29 30 |
# File 'lib/komoju-sdk/models/merchant_role.rb', line 28 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
35 36 37 |
# File 'lib/komoju-sdk/models/merchant_role.rb', line 35 def build_from_hash(value) value end |