Sha256: 7223ae0ff80a88a296f89c939b1c17f6c206b5b11f226a0bfc1e7da71dbb1182

Contents?: true

Size: 696 Bytes

Versions: 1

Compression:

Stored size: 696 Bytes

Contents

module Voog
  class API
    module Site

      # Get site attributes
      def site(params = {})
        get 'site', {query: params}
      end

      # Update a site
      def update_site(data)
        put "site", data
      end

      # Patch a site
      def patch_site(data)
        patch "site", data
      end

      # Update/create a key in site data field
      #
      # @param id [String] key in data field
      def update_site_data(id, data)
        put "site/data/#{id}", {value: data}
      end

      # Delete a key from site data field
      #
      # @param id [String] key in data field
      def delete_site_data(id)
        delete "site/data/#{id}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voog_api-0.0.10 lib/voog_api/api/site.rb