Sha256: 7461d428b964d823cb699abcd16c25c10ff23e21d530bccfdfc725b19a3da4a1
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitbuckets-0.2.0 | lib/bitbucket_rest_api/invitations.rb |