Sha256: 7d96acd4a690f57794b3a6ef4224e5cbd8d88fb4a9f1778c7cfd88135895ced5

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

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 theme_hue timezone),
          ).serialize(resource_attributes)

          put_request "/site", body
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dato-0.1.5 lib/dato/site/repo/site.rb
dato-0.1.4 lib/dato/site/repo/site.rb
dato-0.1.3 lib/dato/site/repo/site.rb
dato-0.1.2 lib/dato/site/repo/site.rb