module RenuoCmsRails::API

Public Class Methods

fetch_contents() click to toggle source

Fetches the contents from the API. It returns a hash where the key is the content_path and the value is the content string. @return [Hash<String, String>] the contents from the API

# File lib/renuo_cms_rails/api.rb, line 8
def fetch_contents
  Contents.new(RenuoCmsRails.config).fetch
end

Private Instance Methods

fetch_contents() click to toggle source

Fetches the contents from the API. It returns a hash where the key is the content_path and the value is the content string. @return [Hash<String, String>] the contents from the API

# File lib/renuo_cms_rails/api.rb, line 8
def fetch_contents
  Contents.new(RenuoCmsRails.config).fetch
end