Class: Ea::Sources::Qea::Adapter
- Inherits:
-
Object
- Object
- Ea::Sources::Qea::Adapter
- Defined in:
- lib/ea/sources/qea/adapter.rb
Overview
Driving port: produces an Ea::Model::Document from a parsed Ea::Qea::Database. Walks the SQLite-derived collections once and delegates to per-domain builders (OCP/MECE — new model types or source columns touch one builder).
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#qea_path ⇒ Object
readonly
Returns the value of attribute qea_path.
Class Method Summary collapse
-
.from_path(qea_path) ⇒ Object
Convenience: build a document directly from a .qea file path.
Instance Method Summary collapse
-
#initialize(database, qea_path = nil) ⇒ Adapter
constructor
A new instance of Adapter.
- #to_document ⇒ Object
Constructor Details
#initialize(database, qea_path = nil) ⇒ Adapter
Returns a new instance of Adapter.
13 14 15 16 |
# File 'lib/ea/sources/qea/adapter.rb', line 13 def initialize(database, qea_path = nil) @database = database @qea_path = qea_path end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
11 12 13 |
# File 'lib/ea/sources/qea/adapter.rb', line 11 def database @database end |
#qea_path ⇒ Object (readonly)
Returns the value of attribute qea_path.
11 12 13 |
# File 'lib/ea/sources/qea/adapter.rb', line 11 def qea_path @qea_path end |