Sha256: 950fc3e33e313255a2ba28c31f729c72cc4fd0dff54fedeb10f9168adb446894

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

# encoding: utf-8

module BitBucket
  class Repos::Commit < API

    def get_one(user_name, repo_name, short_hash)
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?
      normalize! params
      
      path = "/2.0/repositories/#{user}/#{repo.downcase}/commit/#{short_hash}"
      response = get_request(path, params)
      return response 
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zz_bitbucket_rest_api-0.1.10 lib/bitbucket_rest_api/repos/commit.rb
zz_bitbucket_rest_api-0.1.9 lib/bitbucket_rest_api/repos/commit.rb