Class: UkParliament::Lords
- Inherits:
-
Object
- Object
- UkParliament::Lords
- Includes:
- UkParliament
- Defined in:
- lib/uk_parliament/lords.rb
Overview
Class representing the House of Lords.
Constant Summary collapse
- HOUSE_ID =
Unique identifier for House of Lords.
'lords'
- MEMBER_LIST_URL =
URL of where to look for the list of Lords members.
'http://www.parliament.uk/mps-lords-and-offices/lords/'
Constants included from UkParliament
DATA_SOURCE_FILE, DATA_SOURCE_HTTP, VERSION
Instance Attribute Summary collapse
-
#members ⇒ Object
readonly
Instance data accessor(s).
Instance Method Summary collapse
-
#initialize(load_from_file = false) ⇒ Lords
constructor
Initialise the class populating the Lords member data.
Methods included from UkParliament
#configuration, configuration, log, #log
Constructor Details
#initialize(load_from_file = false) ⇒ Lords
Initialise the class populating the Lords member data.
15 16 17 |
# File 'lib/uk_parliament/lords.rb', line 15 def initialize(load_from_file = false) @members = HouseMembersManager.new(HOUSE_ID, load_from_file).members end |
Instance Attribute Details
#members ⇒ Object (readonly)
Instance data accessor(s).
12 13 14 |
# File 'lib/uk_parliament/lords.rb', line 12 def members @members end |