Class: GdsApi::ContentStore
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 GdsApi::Base
Instance Method Details
#content_item(base_path) ⇒ Object
11 12 13 14 15 |
# File 'lib/gds_api/content_store.rb', line 11 def content_item(base_path) get_json(content_item_url(base_path)) rescue GdsApi::HTTPNotFound => e raise ItemNotFound.build_from(e) end |
#content_item!(_) ⇒ Object
17 18 19 |
# File 'lib/gds_api/content_store.rb', line 17 def content_item!(_) raise "`ContentStore#content_item!` is deprecated. Use `ContentStore#content_item` instead" end |