module Tinybucket::Api::Helper::BuildStatusHelper

Private Instance Methods

base_path(revision) click to toggle source
# File lib/tinybucket/api/helper/build_status_helper.rb, line 34
def base_path(revision)
  build_path('/repositories',
             [repo_owner, 'repo_owner'],
             [repo_slug,  'repo_slug'],
             'commit',
             [revision, 'revision'],
             'statuses',
             'build')
end
path_to_find(revision, key) click to toggle source
# File lib/tinybucket/api/helper/build_status_helper.rb, line 20
def path_to_find(revision, key)
  build_path(base_path(revision),
             [key, 'key'])
end
path_to_list() click to toggle source
# File lib/tinybucket/api/helper/build_status_helper.rb, line 11
def path_to_list
  build_path('/repositories',
             [repo_owner, 'repo_owner'],
             [repo_slug,  'repo_slug'],
             'commit',
             [revision, 'revision'],
             'statuses')
end
path_to_post(revision) click to toggle source
# File lib/tinybucket/api/helper/build_status_helper.rb, line 25
def path_to_post(revision)
  base_path(revision)
end
path_to_put(revision, key) click to toggle source
# File lib/tinybucket/api/helper/build_status_helper.rb, line 29
def path_to_put(revision, key)
  build_path(base_path(revision),
             [key, 'key'])
end