Class: Wallee::LineItemType
- Inherits:
-
Object
- Object
- Wallee::LineItemType
- Defined in:
- lib/wallee-ruby-sdk/models/line_item_type.rb
Constant Summary collapse
- SHIPPING =
'SHIPPING'.freeze
- DISCOUNT =
'DISCOUNT'.freeze
- FEE =
'FEE'.freeze
- PRODUCT =
'PRODUCT'.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
31 32 33 34 35 |
# File 'lib/wallee-ruby-sdk/models/line_item_type.rb', line 31 def build_from_hash(value) constantValues = LineItemType.constants.select { |c| LineItemType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #LineItemType" if constantValues.empty? value end |