Class: Minfraud::Components::CustomInputs
- Defined in:
- lib/minfraud/components/custom_inputs.rb
Overview
CustomInputs corresponds to the custom_inputs object of a minFraud request.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ CustomInputs
constructor
A new instance of CustomInputs.
Methods inherited from Base
Constructor Details
#initialize(params = {}) ⇒ CustomInputs
Returns a new instance of CustomInputs.
14 15 16 17 18 19 20 21 22 |
# File 'lib/minfraud/components/custom_inputs.rb', line 14 def initialize(params = {}) params.each do |name, value| instance_variable_set("@#{name}", value) if Minfraud.enable_validation validate_custom_input_value(name, value) end end end |