Sha256: 561e70f6f58eb6d840f6f8e262e5b1f4ee486bf6b32a24de7b7580f53b505a02
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 Bytes
Contents
require 'date' require 'time' module PCPServerSDK module Models class MandateRecurrenceType UNIQUE = "UNIQUE".freeze RECURRING = "RECURRING".freeze def self.all_vars @all_vars ||= [UNIQUE, RECURRING].freeze end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) return value if MandateRecurrenceType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #MandateRecurrenceType" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pcp-server-ruby-sdk-1.0.0 | lib/PCP-server-Ruby-SDK/models/mandate_recurrence_type.rb |