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

Class Method Details

.fetch_contentsHash<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.

Returns:

  • (Hash<String, String>)

    the contents from the API



8
9
10
# File 'lib/renuo_cms_rails/api.rb', line 8

def fetch_contents
  Contents.new(RenuoCmsRails.config).fetch
end