Class: UkParliament::MemberListDocPipeline
- Inherits:
-
DocPipeline
- Object
- DocPipeline
- UkParliament::MemberListDocPipeline
- Defined in:
- lib/uk_parliament/member_list_doc_pipeline.rb
Overview
Class defining the pipeline process of a scraped member list document.
Constant Summary
Constants included from UkParliament
DATA_SOURCE_FILE, DATA_SOURCE_HTTP, VERSION
Instance Method Summary collapse
-
#house_member_list(members) ⇒ Object
Produce the list of members for the relevant house.
-
#initialize(house_id, document) ⇒ MemberListDocPipeline
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) ⇒ MemberListDocPipeline
Initialise the class, calling the parent class init, with provided args.
5 6 7 |
# File 'lib/uk_parliament/member_list_doc_pipeline.rb', line 5 def initialize(house_id, document) super end |
Instance Method Details
#house_member_list(members) ⇒ Object
Produce the list of members for the relevant house.
10 11 12 13 14 |
# File 'lib/uk_parliament/member_list_doc_pipeline.rb', line 10 def house_member_list(members) @members = members execute end |