Sha256: 38a8be5954d642f693bcd5191afb73e5c8f432b17eba4caa51a3f1ec386fb783
Contents?: true
Size: 535 Bytes
Versions: 14
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true require 'dato/site/repo/base' module Dato module Site module Repo class Site < Base def find get_request '/site' end def update(resource_attributes) body = JsonApiSerializer.new( type: :site, attributes: %i(deploy_adapter deploy_settings favicon global_seo locales name no_index ssg theme_hue timezone) ).serialize(resource_attributes) put_request '/site', body end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems