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

Version Path
zz_bitbucket_rest_api-0.1.11 lib/bitbucket_rest_api/invitations.rb
zz_bitbucket_rest_api-0.1.10 lib/bitbucket_rest_api/invitations.rb
zz_bitbucket_rest_api-0.1.9 lib/bitbucket_rest_api/invitations.rb
zz_bitbucket_rest_api-0.1.8 lib/bitbucket_rest_api/invitations.rb
bitbucket_rest_api2-0.9.5 lib/bitbucket_rest_api/invitations.rb
bitbucket_rest_api-0.1.7 lib/bitbucket_rest_api/invitations.rb