everypolitician / everypolitician-ruby

Ruby gem for easy access to EveryPolitician data
http://everypolitician.org/
MIT License
14 stars 5 forks source link

`end_date` dies if there isn't one #46

Closed tmtmtmtm closed 8 years ago

tmtmtmtm commented 8 years ago
> EveryPolitician::Index.new.country('Estonia').legislature('Riigikogu').legislative_periods.first.end_date
NoMethodError: undefined method `split' for nil:NilClass

I would expect this to return nil instead