Sha256: 033da612e3af8ed268a05b5d297c67ebbdb7af81d9a2e74534671b2ffdd370ba

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 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
      #
      # @params 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
      #
      # @params 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.7 lib/voog_api/api/site.rb