Class: Broadcast::Resources::Templates
- Inherits:
-
Base
- Object
- Base
- Broadcast::Resources::Templates
show all
- Defined in:
- lib/broadcast/resources/templates.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(**attrs) ⇒ Object
14
15
16
|
# File 'lib/broadcast/resources/templates.rb', line 14
def create(**attrs)
post('/api/v1/templates', { template: attrs })
end
|
#delete(id) ⇒ Object
22
23
24
|
# File 'lib/broadcast/resources/templates.rb', line 22
def delete(id)
@client.request(:delete, "/api/v1/templates/#{id}")
end
|
#get_template(id) ⇒ Object
10
11
12
|
# File 'lib/broadcast/resources/templates.rb', line 10
def get_template(id)
get("/api/v1/templates/#{id}")
end
|
#list(**params) ⇒ Object
6
7
8
|
# File 'lib/broadcast/resources/templates.rb', line 6
def list(**params)
get('/api/v1/templates', params)
end
|
#update(id, **attrs) ⇒ Object
18
19
20
|
# File 'lib/broadcast/resources/templates.rb', line 18
def update(id, **attrs)
patch("/api/v1/templates/#{id}", { template: attrs })
end
|