Class: BitBucket::Client

Inherits:
API
  • Object
show all
Defined in:
lib/bitbucket_rest_api/client.rb

Constant Summary

Constants included from Validations

Validations::VALID_API_KEYS

Constants included from Validations::Token

Validations::Token::TOKEN_REQUIRED, Validations::Token::TOKEN_REQUIRED_REGEXP

Constants included from Request

Request::METHODS, Request::METHODS_WITH_BODIES

Constants included from Connection

BitBucket::Connection::ALLOWED_OPTIONS

Instance Method Summary collapse

Methods inherited from API

#_merge_mime_type, #_merge_user_into_params!, #_merge_user_repo_into_params!, #_update_user_repo_params, #api_methods_in, inherited, #initialize, #method_missing, #process_basic_auth, #set_api_client, #setup, #update_and_validate_user_repo_params

Methods included from Normalizer

#normalize!

Methods included from ParameterFilter

#filter!

Methods included from AutoloadHelper

#autoload_all, #lookup_constant, #register_constant

Methods included from Validations::Required

#assert_required_keys, #assert_required_values_present, #parse_values

Methods included from Validations::Token

#validates_token_for

Methods included from Validations::Format

#assert_valid_values

Methods included from Validations::Presence

#_validate_presence_of, #_validate_user_repo_params

Methods included from Request

#delete_request, #get_request, #patch_request, #post_request, #put_request, #request

Methods included from Connection

caching?, clear_cache, connection, default_middleware, default_options, stack

Methods included from Authorization

#authenticated?, #authentication, #basic_authed?

Constructor Details

This class inherits a constructor from BitBucket::API

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BitBucket::API

Instance Method Details

#events(_options = {}) ⇒ Object

This is a read-only API to the BitBucket events. These events power the various activity streams on the site.



6
7
8
9
# File 'lib/bitbucket_rest_api/client.rb', line 6

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

#invitations(options = {}) ⇒ Object



49
50
51
# File 'lib/bitbucket_rest_api/client.rb', line 49

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

#issues(options = {}) ⇒ Object



11
12
13
# File 'lib/bitbucket_rest_api/client.rb', line 11

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

#oauth(options = {}) ⇒ Object Also known as: authorizations

An API for users to manage their own tokens.



16
17
18
# File 'lib/bitbucket_rest_api/client.rb', line 16

def oauth(options = {})
  @oauth ||= ApiFactory.new 'Request::OAuth', options
end

#pull_requests(options = {}) ⇒ Object



25
26
27
# File 'lib/bitbucket_rest_api/client.rb', line 25

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

#repos(options = {}) ⇒ Object Also known as: repositories



29
30
31
# File 'lib/bitbucket_rest_api/client.rb', line 29

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

#search(_options = {}) ⇒ Object



34
35
36
37
# File 'lib/bitbucket_rest_api/client.rb', line 34

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

#teams(options = {}) ⇒ Object



21
22
23
# File 'lib/bitbucket_rest_api/client.rb', line 21

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

#user_api(options = {}) ⇒ Object



45
46
47
# File 'lib/bitbucket_rest_api/client.rb', line 45

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

#users(options = {}) ⇒ Object

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



41
42
43
# File 'lib/bitbucket_rest_api/client.rb', line 41

def users(options = {})
  @users ||= ApiFactory.new 'Users', options
end