Sha256: 9db7a6709b9e2f746a3d57aa7309d78735f21bf4dd3ba030a4da9bd5453c95de

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

module Voog
  class API
    module Assets

      # List assets
      def assets(params = {})
        paginate '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.10 lib/voog_api/api/assets.rb