Sha256: ab7494775ff1f8235f2829f52b92532f010a624b60b3daf5c9006f101a0fef43
Contents?: true
Size: 453 Bytes
Versions: 2
Compression:
Stored size: 453 Bytes
Contents
require 'dato/repo/base' module Dato 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 theme_hue timezone), ).serialize(resource_attributes) put_request "/site", body end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dato-0.1.1 | lib/dato/repo/site.rb |
dato-0.1.0 | lib/dato/repo/site.rb |