Sha256: b85e0b4a7f7eb385e32b187963715b0328df7949a708ae509ce2263e9913d83e

Contents?: true

Size: 1.26 KB

Versions: 5

Compression:

Stored size: 1.26 KB

Contents

# encoding: utf-8

module BitBucket
  class Client < API

    require_all 'bitbucket_rest_api/client',
      'issues',
      'repos',
      'users',
      'invitations'

    require_all 'bitbucket_rest_api/client/users', 'account'

    namespace :issues

    namespace :pull_requests

    namespace :repos
    alias :repositories :repos

    # Many of the resources on the users API provide a shortcut for getting
    # information about the currently authenticated user.
    namespace :users

    namespace :user
    alias :user_api :user

    namespace :invitations

    # 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 ||= Api::Factory.new 'Events', options
    end

    # An API for users to manage their own tokens.
    def oauth(options = {})
      raise "Unimpletmented"
      #@oauth ||= Api::Factory.new 'Authorizations', options
    end
    alias :authorizations :oauth

    def teams(options = {})
      raise "Unimplemented"
      #@teams ||= Api::Factory.new 'teams', options
    end

    def search(options = {})
      raise "Unimplemented"
      #@search ||= Api::Factory.new 'Search', options
    end
  end # Client
end # BitBucket

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
codenamev_bitbucket_api-0.4.1 lib/bitbucket_rest_api/client.rb
codenamev_bitbucket_api-0.4.0 lib/bitbucket_rest_api/client.rb
reenhanced_bitbucket_api-0.3.2 lib/bitbucket_rest_api/client.rb
reenhanced_bitbucket_api-0.3.1 lib/bitbucket_rest_api/client.rb
reenhanced_bitbucket_api-0.3.0 lib/bitbucket_rest_api/client.rb