module OpenParliament

Constants

API_URL

Public Class Methods

bills(params = {}) click to toggle source
# File lib/open_parliament.rb, line 16
def self.bills(params = {})
  bills_service = RequestService.new(Bill)
  bills_service.get(params)
end
committees(params = {}) click to toggle source
# File lib/open_parliament.rb, line 21
def self.committees(params = {})
  committees_service = RequestService.new(Committee)
  committees_service.get(params)
end
debates(params = {}) click to toggle source
# File lib/open_parliament.rb, line 26
def self.debates(params = {})
  debates_service = RequestService.new(Debate)
  debates_service.get(params)
end
politicians(params = {}) click to toggle source
# File lib/open_parliament.rb, line 36
def self.politicians(params = {})
  politicians_service = RequestService.new(Politician)
  politicians_service.get(params)
end
votes(params = {}) click to toggle source
# File lib/open_parliament.rb, line 31
def self.votes(params = {})
  votes_service = RequestService.new(Vote)
  votes_service.get(params)
end