Sha256: ad585d5b5ae1c58ecbfba43fa0525909f120f832d80820ad032e45ec561d150f

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

module Voog
  class API
    module Assets

      # List assets
      def assets(params = {})
        get 'assets', {query: params}
      end

      # Get a single asset
      def asset(id, params = {})
        get "assets/#{id}", {query: params}
      end

      # Create a asset
      def create_asset(data)
        post 'assets', data
      end

      # Confirm a asset upload
      def confirm_asset(id)
        put "assets/#{id}/confirm", nil
      end

      # Delete a asset
      def delete_asset(id)
        delete "assets/#{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/assets.rb