Class: DatabaseConsistency::Databases::Factory
- Inherits:
-
Object
- Object
- DatabaseConsistency::Databases::Factory
- Defined in:
- lib/database_consistency/databases/factory.rb
Overview
Factory for database adapters
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
Instance Method Summary collapse
-
#initialize(adapter) ⇒ Factory
constructor
A new instance of Factory.
- #type(type) ⇒ DatabaseConsistency::Databases::Types::Base
Constructor Details
#initialize(adapter) ⇒ Factory
Returns a new instance of Factory.
10 11 12 |
# File 'lib/database_consistency/databases/factory.rb', line 10 def initialize(adapter) @adapter = adapter end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
7 8 9 |
# File 'lib/database_consistency/databases/factory.rb', line 7 def adapter @adapter end |