class OpenStates::District
Public Class Methods
api_method()
click to toggle source
# File lib/openstates/models/district.rb, line 20 def api_method :districts end
find(boundary_id)
click to toggle source
# File lib/openstates/models/district.rb, line 28 def find(boundary_id) return if !boundary_id response = OpenStates.district_boundaries(boundary_id) from_hash(response) end
id_key()
click to toggle source
# File lib/openstates/models/district.rb, line 24 def id_key :boundary_id end