Class: PostFinanceCheckout::CriteriaOperator

Inherits:
Object
  • Object
show all
Defined in:
lib/postfinancecheckout-ruby-sdk/models/criteria_operator.rb

Constant Summary collapse

CONTAINS =
'CONTAINS'.freeze
EQUALS =
'EQUALS'.freeze
EQUALS_IGNORE_CASE =
'EQUALS_IGNORE_CASE'.freeze
GREATER_THAN =
'GREATER_THAN'.freeze
GREATER_THAN_OR_EQUAL =
'GREATER_THAN_OR_EQUAL'.freeze
LESS_THAN =
'LESS_THAN'.freeze
LESS_THAN_OR_EQUAL =
'LESS_THAN_OR_EQUAL'.freeze
NOT_EQUALS =
'NOT_EQUALS'.freeze
NOT_EQUALS_IGNORE_CASE =
'NOT_EQUALS_IGNORE_CASE'.freeze
NOT_CONTAINS =
'NOT_CONTAINS'.freeze
IS_NULL =
'IS_NULL'.freeze
IS_NOT_NULL =
'IS_NOT_NULL'.freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



39
40
41
42
43
# File 'lib/postfinancecheckout-ruby-sdk/models/criteria_operator.rb', line 39

def build_from_hash(value)
  constantValues = CriteriaOperator.constants.select { |c| CriteriaOperator::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #CriteriaOperator" if constantValues.empty?
  value
end