Sha256: d2d87b254d1d9a9c0c4584c1e3611b8cbce99049620e6c2309b59d1b1bac3bf9

Contents?: true

Size: 228 Bytes

Versions: 8

Compression:

Stored size: 228 Bytes

Contents

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vzaar-1.5.0 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.4.4 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.4.1 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.3.1 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.3.0 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.2.4 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.2.3 lib/vzaar/request/upload_thumbnail.rb
vzaar-1.2.2 lib/vzaar/request/upload_thumbnail.rb