Class: GdsApi::ContentRegister
- Defined in:
- lib/gds_api/content_register.rb
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
#entries(format) ⇒ Object
10 11 12 |
# File 'lib/gds_api/content_register.rb', line 10 def entries(format) get_json!(entries_url(format)) end |
#put_entry(content_id, entry) ⇒ Object
6 7 8 |
# File 'lib/gds_api/content_register.rb', line 6 def put_entry(content_id, entry) put_json!(entry_url(content_id), entry) end |