Class: Remi::Extractor::Postgres
- Inherits:
-
Remi::Extractor
- Object
- Remi::Extractor
- Remi::Extractor::Postgres
- Includes:
- DataSubject::Postgres
- Defined in:
- lib/remi/data_subjects/postgres.rb
Overview
Postgres extractor
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Data extracted from Postgres system.
Attributes inherited from Remi::Extractor
Instance Method Summary collapse
-
#extract ⇒ Object
Self after querying Postgres data.
-
#initialize(*args, **kargs, &block) ⇒ Postgres
constructor
A new instance of Postgres.
Methods included from DataSubject::Postgres
Constructor Details
#initialize(*args, **kargs, &block) ⇒ Postgres
Returns a new instance of Postgres.
52 53 54 55 |
# File 'lib/remi/data_subjects/postgres.rb', line 52 def initialize(*args, **kargs, &block) super init_postgres_extractor(*args, **kargs, &block) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns Data extracted from Postgres system.
58 59 60 |
# File 'lib/remi/data_subjects/postgres.rb', line 58 def data @data end |
Instance Method Details
#extract ⇒ Object
Returns self after querying Postgres data.
61 62 63 64 65 |
# File 'lib/remi/data_subjects/postgres.rb', line 61 def extract logger.info "Executing Postgres query #{@query}" @data = execute_query self end |