Sha256: c9e7ec0f16501eb94e03920529474ae1ba41038132b91386f18ad06c44b4b72e

Contents?: true

Size: 242 Bytes

Versions: 6

Compression:

Stored size: 242 Bytes

Contents

module Vzaar
  module Request
    class UploadThumbnail < GenerateThumbnail
      endpoint { |o| "/api/videos/#{o.video_id}/upload_thumb" }

      def data
        { file: File.open(sanitize_str(options[:path])) }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vzaar-1.6.2 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.6.1 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.6.0 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.5.3 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.5.2 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.5.1 lib/vzaar/request/upload_thumbnail.rb