module Tinybucket::Api::Helper::CommitsHelper

Private Instance Methods

base_path() click to toggle source
# File lib/tinybucket/api/helper/commits_helper.rb, line 34
def base_path
  build_path('/repositories',
             [repo_owner, 'repo_owner'],
             [repo_slug, 'repo_slug'])
end
path_to_approve(revision) click to toggle source
# File lib/tinybucket/api/helper/commits_helper.rb, line 27
def path_to_approve(revision)
  build_path(base_path,
             'commit',
             [revision, 'revision'],
             'approve')
end
path_to_branch(branch) click to toggle source
# File lib/tinybucket/api/helper/commits_helper.rb, line 21
def path_to_branch(branch)
  build_path(base_path,
             'commits',
             [branch, 'branch'])
end
path_to_find(revision) click to toggle source
# File lib/tinybucket/api/helper/commits_helper.rb, line 15
def path_to_find(revision)
  build_path(base_path,
             'commit',
             [revision, 'revision'])
end
path_to_list() click to toggle source
# File lib/tinybucket/api/helper/commits_helper.rb, line 11
def path_to_list
  build_path(base_path, 'commits')
end