Class: Humble::SessionFactory
- Inherits:
-
Object
- Object
- Humble::SessionFactory
- Defined in:
- lib/humble/session_factory.rb
Instance Method Summary collapse
- #create_connection ⇒ Object
- #create_session ⇒ Object
-
#initialize(configuration) ⇒ SessionFactory
constructor
A new instance of SessionFactory.
Constructor Details
#initialize(configuration) ⇒ SessionFactory
Returns a new instance of SessionFactory.
3 4 5 |
# File 'lib/humble/session_factory.rb', line 3 def initialize(configuration) @configuration = configuration end |
Instance Method Details
#create_connection ⇒ Object
11 12 13 |
# File 'lib/humble/session_factory.rb', line 11 def create_connection Sequel.connect(@configuration.connection_string) end |