Sha256: f566a381df78132aa2bdfc58edc38508d2e34fe86ba6b4ad49acb174fbc513b4

Contents?: true

Size: 887 Bytes

Versions: 6

Compression:

Stored size: 887 Bytes

Contents

module Voog
  class API

    # Voog Forms API methods.
    #
    # @see http://www.voog.com/developers/api/resources/forms
    module Forms

      # List forms
      #
      # @see http://www.voog.com/developers/api/resources/forms#get_forms
      def forms(params = {})
        paginate 'forms', {query: params}
      end

      # Get a single form
      #
      # @see http://www.voog.com/developers/api/resources/forms#get_form
      def form(id, params = {})
        get "forms/#{id}", {query: params}
      end

      # Update a form
      #
      # @see http://www.voog.com/developers/api/resources/forms#update_form
      def update_form(id, data)
        put "forms/#{id}", data
      end

      # Delete a form
      #
      # @see http://www.voog.com/developers/api/resources/forms#delete_form
      def delete_form(id)
        delete "forms/#{id}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voog_api-0.0.16 lib/voog_api/api/forms.rb
voog_api-0.0.15 lib/voog_api/api/forms.rb
voog_api-0.0.14 lib/voog_api/api/forms.rb
voog_api-0.0.13 lib/voog_api/api/forms.rb
voog_api-0.0.12 lib/voog_api/api/forms.rb
voog_api-0.0.11 lib/voog_api/api/forms.rb