Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. require 'everypolitician'
  2.  
  3. sl = Everypolitician::Index.new.country('sierra-leone')
  4. parliament = sl.legislature('Parliament')
  5. puts parliament.person_count
  6.  
  7. # the Politicians' data (it's using the Popolo standard)
  8. # for example, run through printing out the name
  9. parliament.popolo.each{|m| puts m.name}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement