Class: GdsApi::ContentStore
- Inherits:
-
ContentApi
- Object
- Base
- ContentApi
- GdsApi::ContentStore
- Includes:
- ExceptionHandling
- Defined in:
- lib/gds_api/content_store.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from ExceptionHandling
Methods inherited from ContentApi
#artefact, #artefact!, #artefacts, #business_support_schemes, #child_tags, #curated_list, #for_need, #get_json, #get_json!, #get_list, #get_list!, #initialize, #licences_for_ids, #local_authorities_by_name, #local_authorities_by_snac_code, #local_authority, #root_sections, #root_tags, #sections, #sorted_by, #sub_sections, #tag, #tags, #with_tag
Methods inherited from Base
#client, #create_client, #get_list!, #initialize, #url_for_slug
Constructor Details
This class inherits a constructor from GdsApi::ContentApi
Instance Method Details
#content_item(base_path) ⇒ Object
7 8 9 |
# File 'lib/gds_api/content_store.rb', line 7 def content_item(base_path) get_json(content_item_url(base_path)) end |
#content_item!(base_path) ⇒ Object
11 12 13 |
# File 'lib/gds_api/content_store.rb', line 11 def content_item!(base_path) get_json!(content_item_url(base_path)) end |