Module: Voog::API::ContentPartials
- Included in:
- Client
- Defined in:
- lib/voog_api/api/content_partials.rb
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
11 12 13 |
# File 'lib/voog_api/api/content_partials.rb', line 11 def content_partial(id, params = {}) get "content_partials/#{id}", {query: params} end |
#content_partials(params = {}) ⇒ Object
List content partials contents
6 7 8 |
# File 'lib/voog_api/api/content_partials.rb', line 6 def content_partials(params = {}) paginate 'content_partials', {query: params} end |
#update_content_partial(id, data) ⇒ Object
Update a content partial content
16 17 18 |
# File 'lib/voog_api/api/content_partials.rb', line 16 def update_content_partial(id, data) put "content_partials/#{id}", data end |