module OpenStates::Client::Districts

Public Instance Methods

district_boundary(boundary_id) click to toggle source
# File lib/openstates/client/districts.rb, line 14
def district_boundary(boundary_id)
  get("districts/boundary/#{boundary_id}")
end
districts(state, chamber = nil) click to toggle source
# File lib/openstates/client/districts.rb, line 4
def districts(state, chamber = nil)
  path = if chamber
    "districts/#{state}/#{chamber}"
  else
    "districts/#{state}"
  end

  get(path)
end