Sha256: 23b5775320a72210c9562b1c50d067f8bc80727c886d8dcd505308d1b84ce1df
Contents?: true
Size: 439 Bytes
Versions: 6
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("/1.0/invitations/#{user}/#{repo.downcase}/#{emailaddress}", permission: perm) end end end
Version data entries
6 entries across 6 versions & 3 rubygems