Module: BWStatusBoardAPI::Client::Boards
- Includes:
- Environments::Services, Helpers
- Included in:
- BWStatusBoardAPI::Client, Metrics
- Defined in:
- lib/bw_status_board_api/client/boards.rb
Overview
Boards module for boards endpoints
Instance Method Summary collapse
-
#board(board_id) ⇒ Hash
Get board.
-
#boards(opts = {}) ⇒ Hash
Get boards.
-
#boards_summary ⇒ Array
Returns boards name list.
-
#create_board(opts = {}) ⇒ Hash
Create board.
-
#delete_board(board_id) ⇒ Hash
Delete board.
-
#patch_board(board_id, opts = {}) ⇒ Hash
Patch board.
-
#update_board(board_id, opts = {}) ⇒ Hash
Update board.
Methods included from Environments::Services
#create_service, #delete_service, #failing_services, #patch_service, #service, #services, #services_summary, #successful_services, #update_service
Methods included from Helpers
Instance Method Details
#board(board_id) ⇒ Hash
Get board
35 36 37 |
# File 'lib/bw_status_board_api/client/boards.rb', line 35 def board(board_id) get "boards/#{board_id}" end |
#boards(opts = {}) ⇒ Hash
Get boards
20 21 22 |
# File 'lib/bw_status_board_api/client/boards.rb', line 20 def boards(opts = {}) get 'boards', opts end |
#boards_summary ⇒ Array
Returns boards name list
27 28 29 |
# File 'lib/bw_status_board_api/client/boards.rb', line 27 def boards_summary filter(boards['results'], true) end |
#create_board(opts = {}) ⇒ Hash
Create board
46 47 48 |
# File 'lib/bw_status_board_api/client/boards.rb', line 46 def create_board(opts = {}) post 'boards', opts end |
#delete_board(board_id) ⇒ Hash
Delete board
78 79 80 |
# File 'lib/bw_status_board_api/client/boards.rb', line 78 def delete_board(board_id) delete "boards/#{board_id}" end |
#patch_board(board_id, opts = {}) ⇒ Hash
Patch board
70 71 72 |
# File 'lib/bw_status_board_api/client/boards.rb', line 70 def patch_board(board_id, opts = {}) patch "boards/#{board_id}", opts end |
#update_board(board_id, opts = {}) ⇒ Hash
Update board
58 59 60 |
# File 'lib/bw_status_board_api/client/boards.rb', line 58 def update_board(board_id, opts = {}) put "boards/#{board_id}", opts end |