Class: PublishingPlatformApi::ContentStore
- Defined in:
- lib/publishing_platform_api/content_store.rb
Defined Under Namespace
Classes: ItemNotFound
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#client, #create_client, #get_list, #initialize, #url_for_slug
Constructor Details
This class inherits a constructor from PublishingPlatformApi::Base
Instance Method Details
#content_item(base_path) ⇒ Object
13 14 15 16 17 |
# File 'lib/publishing_platform_api/content_store.rb', line 13 def content_item(base_path) get_json(content_item_url(base_path)) rescue PublishingPlatformApi::HTTPNotFound => e raise ItemNotFound.build_from(e) end |