module Tinybucket::Api::Helper::PullRequestsHelper
Private Instance Methods
base_path()
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 58 def base_path build_path('/repositories', [repo_owner, 'repo_owner'], [repo_slug, 'repo_slug'], 'pullrequests') end
path_to_approve(pr_id)
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 35 def path_to_approve(pr_id) build_path(base_path, [pr_id, 'pullrequest_id'], 'approve') end
path_to_commits(pr_id)
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 29 def path_to_commits(pr_id) build_path(base_path, [pr_id, 'pullrequest_id'], 'commits') end
path_to_create()
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 15 def path_to_create base_path end
path_to_decline(pr_id)
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 46 def path_to_decline(pr_id) build_path(base_path, [pr_id, 'pullrequest_id'], 'decline') end
path_to_diff(pr_id)
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 41 def path_to_diff(pr_id) build_path(path_to_find(pr_id), 'diff') end
path_to_find(pr_id)
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 24 def path_to_find(pr_id) build_path(base_path, [pr_id, 'pullrequest_id']) end
path_to_list()
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 11 def path_to_list base_path end
path_to_merge(pr_id)
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 52 def path_to_merge(pr_id) build_path(base_path, [pr_id, 'pullrequest_id'], 'merge') end
path_to_update(pr_id)
click to toggle source
# File lib/tinybucket/api/helper/pull_requests_helper.rb, line 19 def path_to_update(pr_id) build_path(base_path, [pr_id, 'pullrequest_id']) end