Module: BWAPI::Client::Projects::StreamDashboards::Streams
- Included in:
- BWAPI::Client::Projects::StreamDashboards
- Defined in:
- lib/bwapi/client/projects/stream_dashboards/streams.rb
Overview
Streams module for projects/stream_dashboards/streams endpoints
Instance Method Summary collapse
-
#create_stream(project_id, stream_dashboard_id, opts = {}) ⇒ Hashie::Mash
Create a stream in a stream dashboard.
-
#delete_stream(project_id, stream_dashboard_id, stream_id) ⇒ Hashie::Mash
Delete a stream in a stream dashboard.
-
#get_stream(project_id, stream_dashboard_id, stream_id) ⇒ Hashie::Mash
Get a stream in a stream dashboard.
-
#get_streams(project_id, stream_dashboard_id) ⇒ Hashie::Mash
Get all streams in a stream dashboard.
-
#update_stream(project_id, stream_dashboard_id, stream_id, opts = {}) ⇒ Hashie::Mash
Update a stream in a stream dashboard.
Instance Method Details
#create_stream(project_id, stream_dashboard_id, opts = {}) ⇒ Hashie::Mash
Create a stream in a stream dashboard
41 42 43 |
# File 'lib/bwapi/client/projects/stream_dashboards/streams.rb', line 41 def create_stream(project_id, stream_dashboard_id, opts = {}) post "projects/#{project_id}/streamDashboards/#{stream_dashboard_id}/streams", opts end |
#delete_stream(project_id, stream_dashboard_id, stream_id) ⇒ Hashie::Mash
Delete a stream in a stream dashboard
68 69 70 |
# File 'lib/bwapi/client/projects/stream_dashboards/streams.rb', line 68 def delete_stream(project_id, stream_dashboard_id, stream_id) delete "projects/#{project_id}/streamDashboards/#{stream_dashboard_id}/streams/#{stream_id}" end |
#get_stream(project_id, stream_dashboard_id, stream_id) ⇒ Hashie::Mash
Get a stream in a stream dashboard
25 26 27 |
# File 'lib/bwapi/client/projects/stream_dashboards/streams.rb', line 25 def get_stream(project_id, stream_dashboard_id, stream_id) get "projects/#{project_id}/streamDashboards/#{stream_dashboard_id}/streams/#{stream_id}" end |
#get_streams(project_id, stream_dashboard_id) ⇒ Hashie::Mash
Get all streams in a stream dashboard
15 16 17 |
# File 'lib/bwapi/client/projects/stream_dashboards/streams.rb', line 15 def get_streams(project_id, stream_dashboard_id) get "projects/#{project_id}/streamDashboards/#{stream_dashboard_id}/streams" end |
#update_stream(project_id, stream_dashboard_id, stream_id, opts = {}) ⇒ Hashie::Mash
Update a stream in a stream dashboard
58 59 60 |
# File 'lib/bwapi/client/projects/stream_dashboards/streams.rb', line 58 def update_stream(project_id, stream_dashboard_id, stream_id, opts = {}) put "projects/#{project_id}/streamDashboards/#{stream_dashboard_id}/streams/#{stream_id}", opts end |