Sha256: bcef304e69f024789de2de069b57ee2c2c7e46ac17cc1477bfdb970ff4fefe72

Contents?: true

Size: 747 Bytes

Versions: 6

Compression:

Stored size: 747 Bytes

Contents

module Voog
  class API

    # Voog Text Contents API methods.
    #
    # @see http://www.voog.com/developers/api/resources/texts
    module Texts

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

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

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