Sha256: 55c217558419da01e7d9f4c54efc3d50d6d6ab86adc8dc5ebe55f69c5bd1475c
Contents?: true
Size: 502 Bytes
Versions: 16
Compression:
Stored size: 502 Bytes
Contents
# frozen_string_literal: true module Ninny module Repository class PullRequest attr_accessor :number, :title, :description, :branch, :comment_lambda def initialize(opts = {}) self.number = opts[:number] self.title = opts[:title] self.description = opts[:description] self.branch = opts[:branch] self.comment_lambda = opts[:comment_lambda] end def write_comment(body) comment_lambda.call(body) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems