class Everypolitician::PullRequest::ReviewChanges
Attributes
popolo_files[R]
Public Class Methods
new(popolo_before_after)
click to toggle source
# File lib/everypolitician/pull_request/review_changes.rb, line 8 def initialize(popolo_before_after) @popolo_files = popolo_before_after.map do |opts| ComparePopolo.parse(opts) end end
Public Instance Methods
template()
click to toggle source
# File lib/everypolitician/pull_request/review_changes.rb, line 18 def template @template ||= ERB.new(File.read(File.expand_path('../../../../comment_template.md.erb', __FILE__))) end
to_html()
click to toggle source
# File lib/everypolitician/pull_request/review_changes.rb, line 14 def to_html template.result(binding) end