Skip to content

Commit

Permalink
ocdid support
Browse files Browse the repository at this point in the history
  • Loading branch information
gcosta committed Jan 3, 2023
1 parent 71a326b commit 048a640
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/geocodio/congressional_district.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def initialize(payload = {})
@district_number = payload['district_number'] || 0
@congress_number = payload['congress_number'].to_i
@congress_years = payload['congress_years']
@ocd_id = payload['ocd_id']
end

def congress_years
Expand Down
2 changes: 2 additions & 0 deletions lib/geocodio/state_legislative_district.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ module Geocodio
class StateLegislativeDistrict
attr_accessor :name
attr_accessor :district_number
attr_accessor :ocd_id

def initialize(payload = {})
payload = {} if payload.nil?
@name = payload['name']
@district_number = payload['district_number'] || 0
@ocd_id = payload['ocd_id']
end
end
end
2 changes: 1 addition & 1 deletion lib/geocodio/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Geocodio
class Version
MAJOR = 2
MINOR = 0
PATCH = 5
PATCH = 6

def self.to_s
[MAJOR, MINOR, PATCH].join('.')
Expand Down

0 comments on commit 048a640

Please sign in to comment.