Module: Voog::API::ContentPartials
- Included in:
- Client
- Defined in:
- lib/voog_api/api/content_partials.rb
Overview
Voog Content Partials API methods.
Instance Method Summary collapse
-
#content_partial(id, params = {}) ⇒ Object
Get a single content partial content.
-
#content_partials(params = {}) ⇒ Object
List content partials contents.
-
#update_content_partial(id, data) ⇒ Object
Update a content partial content.
Instance Method Details
#content_partial(id, params = {}) ⇒ Object
Get a single content partial content
19 20 21 |
# File 'lib/voog_api/api/content_partials.rb', line 19 def content_partial(id, params = {}) get "content_partials/#{id}", {query: params} end |
#content_partials(params = {}) ⇒ Object
List content partials contents
12 13 14 |
# File 'lib/voog_api/api/content_partials.rb', line 12 def content_partials(params = {}) paginate 'content_partials', {query: params} end |
#update_content_partial(id, data) ⇒ Object
Update a content partial content
26 27 28 |
# File 'lib/voog_api/api/content_partials.rb', line 26 def update_content_partial(id, data) put "content_partials/#{id}", data end |