Class: BitBucket::Client
Constant Summary
Constants included from Validations
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
-
#events(_options = {}) ⇒ Object
This is a read-only API to the BitBucket events.
- #invitations(options = {}) ⇒ Object
- #issues(options = {}) ⇒ Object
-
#oauth(options = {}) ⇒ Object
(also: #authorizations)
An API for users to manage their own tokens.
- #pull_requests(options = {}) ⇒ Object
- #repos(options = {}) ⇒ Object (also: #repositories)
- #search(_options = {}) ⇒ Object
- #teams(options = {}) ⇒ Object
- #user_api(options = {}) ⇒ Object
-
#users(options = {}) ⇒ Object
Many of the resources on the users API provide a shortcut for getting information about the currently authenticated user.
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
Methods included from ParameterFilter
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
Methods included from Validations::Format
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( = {}) 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( = {}) @invitations ||= ApiFactory.new 'Invitations', end |
#issues(options = {}) ⇒ Object
11 12 13 |
# File 'lib/bitbucket_rest_api/client.rb', line 11 def issues( = {}) @issues ||= ApiFactory.new 'Issues', end |
#oauth(options = {}) ⇒ Object Also known as:
An API for users to manage their own tokens.
16 17 18 |
# File 'lib/bitbucket_rest_api/client.rb', line 16 def oauth( = {}) @oauth ||= ApiFactory.new 'Request::OAuth', end |
#pull_requests(options = {}) ⇒ Object
25 26 27 |
# File 'lib/bitbucket_rest_api/client.rb', line 25 def pull_requests( = {}) @pull_requests ||= ApiFactory.new 'Repos::PullRequest', end |
#repos(options = {}) ⇒ Object Also known as: repositories
29 30 31 |
# File 'lib/bitbucket_rest_api/client.rb', line 29 def repos( = {}) @repos ||= ApiFactory.new 'Repos', end |
#search(_options = {}) ⇒ Object
34 35 36 37 |
# File 'lib/bitbucket_rest_api/client.rb', line 34 def search( = {}) 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( = {}) @teams ||= ApiFactory.new 'Teams', end |
#user_api(options = {}) ⇒ Object
45 46 47 |
# File 'lib/bitbucket_rest_api/client.rb', line 45 def user_api( = {}) @user_api ||= ApiFactory.new 'User', 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( = {}) @users ||= ApiFactory.new 'Users', end |