Module: RenuoCmsRails::API
- Defined in:
- lib/renuo_cms_rails/api.rb,
lib/renuo_cms_rails/api/contents.rb
Defined Under Namespace
Classes: Contents
Class Method Summary collapse
-
.fetch_contents ⇒ Hash<String, String>
Fetches the contents from the API.
Class Method Details
.fetch_contents ⇒ Hash<String, String>
Fetches the contents from the API. It returns a hash where the key is the content_path and the value is the content string.
8 9 10 |
# File 'lib/renuo_cms_rails/api.rb', line 8 def fetch_contents Contents.new(RenuoCmsRails.config).fetch end |