Module: Voog::API::Layouts
- Included in:
- Client
- Defined in:
- lib/voog_api/api/layouts.rb
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
16 17 18 |
# File 'lib/voog_api/api/layouts.rb', line 16 def create_layout(data) post 'layouts', data end |
#delete_layout(id) ⇒ Object
Delete a layout
26 27 28 |
# File 'lib/voog_api/api/layouts.rb', line 26 def delete_layout(id) delete "layouts/#{id}" end |
#layout(id, params = {}) ⇒ Object
Get a single layout
11 12 13 |
# File 'lib/voog_api/api/layouts.rb', line 11 def layout(id, params = {}) get "layouts/#{id}", {query: params} end |
#layouts(params = {}) ⇒ Object
List layouts
6 7 8 |
# File 'lib/voog_api/api/layouts.rb', line 6 def layouts(params = {}) paginate 'layouts', {query: params} end |
#update_layout(id, data) ⇒ Object
Update a layout
21 22 23 |
# File 'lib/voog_api/api/layouts.rb', line 21 def update_layout(id, data) put "layouts/#{id}", data end |