Class: UkParliament::MemberSummaryDocPipeline
- Inherits:
-
DocPipeline
- Object
- DocPipeline
- UkParliament::MemberSummaryDocPipeline
- Defined in:
- lib/uk_parliament/member_summary_doc_pipeline.rb
Overview
Class defining the pipeline process of a scraped member summary document.
Constant Summary
Constants included from UkParliament
DATA_SOURCE_FILE, DATA_SOURCE_HTTP, VERSION
Instance Method Summary collapse
-
#enrich_member_data(member) ⇒ Object
Produce the member summary.
-
#initialize(house_id, document) ⇒ MemberSummaryDocPipeline
constructor
Initialise the class, calling the parent class init, with provided args.
Methods included from UkParliament
#configuration, configuration, log, #log
Constructor Details
#initialize(house_id, document) ⇒ MemberSummaryDocPipeline
Initialise the class, calling the parent class init, with provided args.
5 6 7 |
# File 'lib/uk_parliament/member_summary_doc_pipeline.rb', line 5 def initialize(house_id, document) super end |
Instance Method Details
#enrich_member_data(member) ⇒ Object
Produce the member summary.
10 11 12 13 14 |
# File 'lib/uk_parliament/member_summary_doc_pipeline.rb', line 10 def enrich_member_data(member) @member = member execute end |