Method: Sip::DBBase.make_interface
- Defined in:
- lib/sip/databases/dbbase.rb
.make_interface(type, args, sipper) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/sip/databases/dbbase.rb', line 5 def self.make_interface(type, args, sipper) if type == 'mysql' require 'sip/databases/mysql' MySQLSipper.new args, sipper else raise UnsupportedDatabaseType, "DB type #{type.to_s} not supported." end end |