Method: Idnow::IdentificationData#initialize
- Defined in:
- lib/idnow/models/identification_data.rb
#initialize(params = {}) ⇒ IdentificationData
21 22 23 24 25 26 27 |
# File 'lib/idnow/models/identification_data.rb', line 21 def initialize(params = {}) params.each_key do |key| raise ArgumentError, "Attribute #{key} is not supported!" unless respond_to?(key.to_sym) send("#{key}=", params[key]) end end |