Module: PublicContentBundles
- Included in:
- PublicContent
- Defined in:
- lib/pub/content/content_bundles.rb
Instance Method Summary collapse
-
#get_content_bundle(slug, options = nil) ⇒ Object
Get Content Bundle.
-
#get_content_bundles(options = nil) ⇒ Object
Get Content Pages.
-
#get_content_page(slug, options = nil) ⇒ Object
Get Content Page.
Instance Method Details
#get_content_bundle(slug, options = nil) ⇒ Object
Get Content Bundle.
Get a single content bundle.
Parameters
- slug
-
(String) – It’s the string identifier generated by Mints.
Example
@data = @mints_pub.get_content_bundle("test-page")
37 38 39 |
# File 'lib/pub/content/content_bundles.rb', line 37 def get_content_bundle(slug, = nil) @client.raw('get', "/content/content-bundles/#{slug}", ) end |
#get_content_bundles(options = nil) ⇒ Object
Get Content Pages.
Get all content pages.
Parameters
- options
-
(Hash) – List of Resource collection Options shown above can be used as parameter.
10 11 12 |
# File 'lib/pub/content/content_bundles.rb', line 10 def get_content_bundles( = nil) @client.raw('get', '/content/content-bundles', ) end |
#get_content_page(slug, options = nil) ⇒ Object
Get Content Page.
Get a single content page.
Parameters
- slug
-
(String) – It’s the string identifier generated by Mints.
Example
@data = @mints_pub.get_content_page("test-page")
23 24 25 26 |
# File 'lib/pub/content/content_bundles.rb', line 23 def get_content_page(slug, = nil) warn '[DEPRECATED] The get_content_page method is deprecated and will be removed in the future, use get_content_bundle instead' @client.raw('get', "/content/content-pages/#{slug}", ) end |