Sha256: e48d1c99acec89296999dc4751afb2850359c8cf74b4788c38afa8d283008de7
Contents?: true
Size: 439 Bytes
Versions: 4
Compression:
Stored size: 439 Bytes
Contents
# encoding: utf-8 module BitBucket class Invitations < API def invite(user_name, repo_name, emailaddress, perm) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _validate_presence_of emailaddress perm ||= "write" post_request("/2.0/invitations/#{user}/#{repo.downcase}/#{emailaddress}", permission: perm) end end end
Version data entries
4 entries across 4 versions & 1 rubygems