class Pra::PullSource

Public Class Methods

new(config = {}) click to toggle source
# File lib/pra/pull_source.rb, line 5
def initialize(config = {})
  @config = config
end

Public Instance Methods

pull_requests() click to toggle source

This method is a pure virtual method and is intended to implemented by all inheriting classes. It is responsible for obtaining and returning the opened pull requests from the pull source. Note: These should be returned as an array of Pra::PullRequest instances.

# File lib/pra/pull_source.rb, line 13
def pull_requests
  raise NotImplemented, "The 'pull_requests' method needs to be implemented by the inheriting class"
end