class GmoPayment::Configurations

Constants

REQUIRED_CONFIG

Attributes

all[RW]

Public Class Methods

check_valid!(changeable_on_runtime = false) click to toggle source
# File lib/gmo_payment/configurations.rb, line 9
def self.check_valid!(changeable_on_runtime = false)
  freeze unless changeable_on_runtime
  REQUIRED_CONFIG.each do |param|
    raise GmoPayment::CustomError, "gmo_payment error: #{param} not set" if all.fetch(param, nil).nil?
  end
end