Class: ShedCloud::PartnerApi::Resources::LocationBudgets
- Inherits:
-
Base
- Object
- Base
- ShedCloud::PartnerApi::Resources::LocationBudgets
show all
- Defined in:
- lib/shedcloud/partner_api/resources/location_budgets.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(body, options: nil) ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/shedcloud/partner_api/resources/location_budgets.rb', line 15
def create(body, options: nil)
@http.request(
'POST',
'/partner/v1/location-budgets',
body: body,
headers: (options),
) || {}
end
|
#get(id) ⇒ Object
11
12
13
|
# File 'lib/shedcloud/partner_api/resources/location_budgets.rb', line 11
def get(id)
@http.request('GET', "/partner/v1/location-budgets/#{path_segment(id)}") || {}
end
|
#list(params = {}) ⇒ Object
7
8
9
|
# File 'lib/shedcloud/partner_api/resources/location_budgets.rb', line 7
def list(params = {})
@http.request('GET', '/partner/v1/location-budgets', query: params) || {}
end
|
#update(id, body) ⇒ Object
24
25
26
|
# File 'lib/shedcloud/partner_api/resources/location_budgets.rb', line 24
def update(id, body)
@http.request('PUT', "/partner/v1/location-budgets/#{path_segment(id)}", body: body) || {}
end
|