Sha256: 5a82803ee471e39d3fcf885e319207b9c025cfe27bd4b930df8baca1ace2e485
Contents?: true
Size: 1.14 KB
Versions: 6
Compression:
Stored size: 1.14 KB
Contents
=begin #Onfido API v3.6 #The Onfido API (v3.6) The version of the OpenAPI document: v3.6 Generated by: https://openapi-generator.tech Generator version: 7.6.0 =end require 'date' require 'time' module Onfido class ReportStatus AWAITING_DATA = "awaiting_data".freeze AWAITING_APPROVAL = "awaiting_approval".freeze CANCELLED = "cancelled".freeze COMPLETE = "complete".freeze WITHDRAWN = "withdrawn".freeze UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze def self.all_vars @all_vars ||= [AWAITING_DATA, AWAITING_APPROVAL, CANCELLED, COMPLETE, WITHDRAWN, UNKNOWN_DEFAULT_OPEN_API].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 ReportStatus.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ReportStatus" end end end
Version data entries
6 entries across 6 versions & 1 rubygems