Class: ApimaticCalcu::OperationTypeEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/apimatic_calcu/models/operation_type_enum.rb

Overview

Possible operators are sum, subtract, multiply, divide

Constant Summary collapse

OPERATION_TYPE_ENUM =
[
  # Represents the sum operator
  SUM = 'SUM'.freeze,

  # Represents the subtract operator
  SUBTRACT = 'SUBTRACT'.freeze,

  # Represents the multiply operator
  MULTIPLY = 'MULTIPLY'.freeze,

  # Represents the divide operator
  DIVIDE = 'DIVIDE'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



23
24
25
26
27
# File 'lib/apimatic_calcu/models/operation_type_enum.rb', line 23

def self.validate(value)
  return false if value.nil?

  OPERATION_TYPE_ENUM.include?(value)
end