Sha256: 995358a998969a0dc417d6bec6fd1b83d5b751203ef0c5174f04805781a186f0

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 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?
      
      path = "/2.0/repositories/#{user}/#{repo.downcase}/commit/#{short_hash}"
      response = get_request(path)
      return response 
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 lib/bitbucket_rest_api/repos/commit.rb