Sha256: b380b77dcce1daa69726c0f9ebb73389f475cd010f7bcbf9dddf6029090dfbcc
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
module Troo class Database class << self def connect(configuration, options = {}) new(configuration, options).connect end end def initialize(configuration, options = {}) @configuration, @options = configuration, options end def connect Ohm.connect(db: configuration.database) end private attr_reader :configuration def options defaults.merge!(@options) end def defaults {} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.10 | lib/troo/database.rb |