Module: Voog::API::Layouts
- Included in:
- Client
- Defined in:
- lib/voog_api/api/layouts.rb
Overview
Voog Layouts API methods.
Instance Method Summary collapse
-
#create_layout(data) ⇒ Object
Create a layout.
-
#delete_layout(id) ⇒ Object
Delete a layout.
-
#layout(id, params = {}) ⇒ Object
Get a single layout.
-
#layouts(params = {}) ⇒ Object
List layouts.
-
#update_layout(id, data) ⇒ Object
Update a layout.
Instance Method Details
#create_layout(data) ⇒ Object
Create a layout
26 27 28 |
# File 'lib/voog_api/api/layouts.rb', line 26 def create_layout(data) post 'layouts', data end |
#delete_layout(id) ⇒ Object
Delete a layout
40 41 42 |
# File 'lib/voog_api/api/layouts.rb', line 40 def delete_layout(id) delete "layouts/#{id}" end |
#layout(id, params = {}) ⇒ Object
Get a single layout
19 20 21 |
# File 'lib/voog_api/api/layouts.rb', line 19 def layout(id, params = {}) get "layouts/#{id}", {query: params} end |
#layouts(params = {}) ⇒ Object
List layouts
12 13 14 |
# File 'lib/voog_api/api/layouts.rb', line 12 def layouts(params = {}) paginate 'layouts', {query: params} end |
#update_layout(id, data) ⇒ Object
Update a layout
33 34 35 |
# File 'lib/voog_api/api/layouts.rb', line 33 def update_layout(id, data) put "layouts/#{id}", data end |