Class: Basecamp::Services::HillChartsService
- Inherits:
-
BaseService
- Object
- BaseService
- Basecamp::Services::HillChartsService
- Defined in:
- lib/basecamp/generated/services/hill_charts_service.rb
Overview
Service for HillCharts operations
Instance Method Summary collapse
-
#get(todoset_id:) ⇒ Hash
Get the hill chart for a todoset.
-
#update_settings(todoset_id:, tracked: nil, untracked: nil) ⇒ Hash
Track or untrack todolists on a hill chart.
Constructor Details
This class inherits a constructor from Basecamp::Services::BaseService
Instance Method Details
#get(todoset_id:) ⇒ Hash
Get the hill chart for a todoset
13 14 15 16 17 |
# File 'lib/basecamp/generated/services/hill_charts_service.rb', line 13 def get(todoset_id:) with_operation(service: "hillcharts", operation: "get", is_mutation: false, resource_id: todoset_id) do http_get("/todosets/#{todoset_id}/hill.json").json end end |
#update_settings(todoset_id:, tracked: nil, untracked: nil) ⇒ Hash
Track or untrack todolists on a hill chart
24 25 26 27 28 |
# File 'lib/basecamp/generated/services/hill_charts_service.rb', line 24 def update_settings(todoset_id:, tracked: nil, untracked: nil) with_operation(service: "hillcharts", operation: "update_settings", is_mutation: true, resource_id: todoset_id) do http_put("/todosets/#{todoset_id}/hills/settings.json", body: compact_params(tracked: tracked, untracked: untracked)).json end end |