class Everypolitician::PullRequest::Report::Elections
Public Instance Methods
added()
click to toggle source
# File lib/everypolitician/pull_request/report/elections.rb, line 11 def added elections(after.events - before.events) end
elections(events)
click to toggle source
# File lib/everypolitician/pull_request/report/elections.rb, line 5 def elections(events) events.select do |event| event if event.document[:classification] == 'general election' end end
removed()
click to toggle source
# File lib/everypolitician/pull_request/report/elections.rb, line 15 def removed elections(before.events - after.events) end