Sha256: 89a639d71f82b0891c9d8c8d13fc12be8707bf36a410f0bc2eab35dc613a3eba

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

# frozen_string_literal: true
module BitBucket
  class Client < API
    # This is a read-only API to the BitBucket events.
    # These events power the various activity streams on the site.
    def events(_options = {})
      raise 'Unimplemented'
      # @events ||= ApiFactory.new 'Events', options
    end

    def issues(options = {})
      @issues ||= ApiFactory.new 'Issues', options
    end

    # An API for users to manage their own tokens.
    def oauth(options = {})
      @oauth ||= ApiFactory.new 'Request::OAuth', options
    end
    alias authorizations oauth

    def teams(options = {})
      @teams ||= ApiFactory.new 'Teams', options
    end

    def pull_requests(options = {})
      @pull_requests ||= ApiFactory.new 'Repos::PullRequest', options
    end

    def repos(options = {})
      @repos ||= ApiFactory.new 'Repos', options
    end
    alias repositories repos

    def search(_options = {})
      raise 'Unimplemented'
      # @search ||= ApiFactory.new 'Search', options
    end

    # Many of the resources on the users API provide a shortcut for getting
    # information about the currently authenticated user.
    def users(options = {})
      @users ||= ApiFactory.new 'Users', options
    end

    def user_api(options = {})
      @user_api ||= ApiFactory.new 'User', options
    end

    def invitations(options = {})
      @invitations ||= ApiFactory.new 'Invitations', options
    end
  end # Client
end # BitBucket

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitbuckets-0.2.0 lib/bitbucket_rest_api/client.rb