Class: AAMVA::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/aamva/factory.rb

Class Method Summary collapse

Class Method Details

.build(type, options = {}) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/aamva/factory.rb', line 5

def self.build(type, options = {})
  if respond_to?(type)
    send(type, options)
  else
    raise "Unsupported Factory Type: #{type}"
  end
end