Class: UnivapayClientSdk::ApiErrorStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/univapay_client_sdk/models/api_error_status.rb

Overview

Always returns 'error'.

Constant Summary collapse

API_ERROR_STATUS =
[
  # TODO: Write general description for ERROR
  ERROR = 'error'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = ERROR) ⇒ Object



20
21
22
23
24
# File 'lib/univapay_client_sdk/models/api_error_status.rb', line 20

def self.from_value(value, default_value = ERROR)
  return default_value if value.nil?

  default_value
end

.validate(value) ⇒ Object



14
15
16
17
18
# File 'lib/univapay_client_sdk/models/api_error_status.rb', line 14

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

  API_ERROR_STATUS.include?(value)
end