Sha256: 75efccbc0ce50f3456a012c854f3116ad041637efd223e645e88c03287903481

Contents?: true

Size: 937 Bytes

Versions: 6

Compression:

Stored size: 937 Bytes

Contents

module Voog
  class API

    # Voog Content Partials API methods.
    #
    # @see http://www.voog.com/developers/api/resources/content_partials
    module ContentPartials

      # List content partials contents
      #
      # @see http://www.voog.com/developers/api/resources/content_partials#get_content_partials
      def content_partials(params = {})
        paginate 'content_partials', {query: params}
      end

      # Get a single content partial content
      #
      # @see http://www.voog.com/developers/api/resources/content_partials#get_content_partial
      def content_partial(id, params = {})
        get "content_partials/#{id}", {query: params}
      end

      # Update a content partial content
      #
      # @see http://www.voog.com/developers/api/resources/content_partials#update_content_partial
      def update_content_partial(id, data)
        put "content_partials/#{id}", data
      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/content_partials.rb
voog_api-0.0.15 lib/voog_api/api/content_partials.rb
voog_api-0.0.14 lib/voog_api/api/content_partials.rb
voog_api-0.0.13 lib/voog_api/api/content_partials.rb
voog_api-0.0.12 lib/voog_api/api/content_partials.rb
voog_api-0.0.11 lib/voog_api/api/content_partials.rb