class UkParliament::Lords

Class representing the House of Lords.

Constants

HOUSE_ID

Unique identifier for House of Lords.

MEMBER_LIST_URL

URL of where to look for the list of Lords members.

Attributes

members[R]

Instance data accessor(s).

Public Class Methods

new(load_from_file = false) click to toggle source

Initialise the class populating the Lords member data.

# File lib/uk_parliament/lords.rb, line 15
def initialize(load_from_file = false)
  @members = HouseMembersManager.new(HOUSE_ID, load_from_file).members
end