Sha256: b6e3afaa90ccf0f2e7e44da0df38adbcaf58da0cbcedc7c7e3a434f6d142a6cf
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
module Troo class Database class << self # @param [] # @param [Hash] # @return [] def connect(configuration, options = {}) new(configuration, options).connect end end # @param [] # @param [Hash] # @return [] def initialize(configuration, options = {}) @configuration, @options = configuration, options end # @return [] 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.12 | lib/troo/database.rb |
troo-0.0.11 | lib/troo/database.rb |