mobilecommons / google_civic_info

Ruby client for Google Civic Information API
MIT License
1 stars 1 forks source link

added || [] to RepresentativeInfoResponse map of details['officeIds'] #6

Closed apmitchell closed 10 years ago

apmitchell commented 10 years ago

I was using the look up method and was getting undefined method map for nil, as officeid was coming back nil, add || [] to catch the error.