Class: Tinybucket::Api::BuildStatusApi
- Includes:
- Helper::BuildStatusHelper
- Defined in:
- lib/tinybucket/api/build_status_api.rb
Overview
BuildStatus Api client
Constant Summary
Constants included from Connection
Connection::DEFAULT_USER_AGENT
Instance Attribute Summary collapse
-
#repo_owner ⇒ Object
Returns the value of attribute repo_owner.
-
#repo_slug ⇒ Object
Returns the value of attribute repo_slug.
-
#revision ⇒ Object
Returns the value of attribute revision.
Instance Method Summary collapse
-
#find(revision, key, options = {}) ⇒ Tinybucket::Model::BuildStatus
Send ‘GET the build status for a commit’ request.
-
#list(options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET a builds list for a commit’ request.
-
#post(revision, key, options) ⇒ Tinybucket::Model::BuildStatus
Send ‘POST a build status for a commit’ request.
-
#put(revision, key, options) ⇒ Tinybucket::Model::BuildStatus
Send ‘PUT a build status for a commit’ request.
Methods included from Connection
#caching?, #clear_cache, #connection
Instance Attribute Details
#repo_owner ⇒ Object
Returns the value of attribute repo_owner.
12 13 14 |
# File 'lib/tinybucket/api/build_status_api.rb', line 12 def repo_owner @repo_owner end |
#repo_slug ⇒ Object
Returns the value of attribute repo_slug.
12 13 14 |
# File 'lib/tinybucket/api/build_status_api.rb', line 12 def repo_slug @repo_slug end |
#revision ⇒ Object
Returns the value of attribute revision.
12 13 14 |
# File 'lib/tinybucket/api/build_status_api.rb', line 12 def revision @revision end |
Instance Method Details
#find(revision, key, options = {}) ⇒ Tinybucket::Model::BuildStatus
Send ‘GET the build status for a commit’ request
32 33 34 35 36 37 38 |
# File 'lib/tinybucket/api/build_status_api.rb', line 32 def find(revision, key, = {}) get_path( path_to_find(revision, key), , get_parser(:object, Tinybucket::Model::BuildStatus) ) end |
#list(options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET a builds list for a commit’ request
18 19 20 21 22 23 24 |
# File 'lib/tinybucket/api/build_status_api.rb', line 18 def list( = {}) get_path( path_to_list, , get_parser(:collection, Tinybucket::Model::BuildStatus) ) end |
#post(revision, key, options) ⇒ Tinybucket::Model::BuildStatus
Send ‘POST a build status for a commit’ request
46 47 48 49 50 51 52 |
# File 'lib/tinybucket/api/build_status_api.rb', line 46 def post(revision, key, ) post_path( path_to_post(revision), .merge(key: key), get_parser(:object, Tinybucket::Model::BuildStatus) ) end |
#put(revision, key, options) ⇒ Tinybucket::Model::BuildStatus
Send ‘PUT a build status for a commit’ request
60 61 62 63 64 65 66 |
# File 'lib/tinybucket/api/build_status_api.rb', line 60 def put(revision, key, ) put_path( path_to_put(revision, key), , get_parser(:object, Tinybucket::Model::BuildStatus) ) end |