Sha256: a3f6cb60a92bc2c4337fc9bd0a847871c766ac3dc16846d6d2fe8e8e6cd7c8ab

Contents?: true

Size: 367 Bytes

Versions: 142

Compression:

Stored size: 367 Bytes

Contents

# Copyright Cloudinary
class Cloudinary::Blob < StringIO
  attr_reader :original_filename, :content_type
  alias_method :path, :original_filename
  
  def initialize(data, options={})
    super(data)
    @original_filename = options[:original_filename] || "cloudinaryfile"
    @content_type = options[:content_type] || "application/octet-stream"
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
cloudinary-2.2.0 lib/cloudinary/blob.rb
cloudinary-2.1.2 lib/cloudinary/blob.rb
cloudinary-2.0.2 lib/cloudinary/blob.rb
cloudinary-2.0.1 lib/cloudinary/blob.rb
cloudinary-2.0.0 lib/cloudinary/blob.rb
cloudinary-1.29.0 lib/cloudinary/blob.rb
cloudinary-1.28.0 lib/cloudinary/blob.rb
cloudinary-1.27.0 lib/cloudinary/blob.rb
cloudinary-1.26.0 lib/cloudinary/blob.rb
cloudinary-1.25.0 lib/cloudinary/blob.rb
cloudinary-1.24.0 lib/cloudinary/blob.rb
cloudinary-1.23.0 lib/cloudinary/blob.rb
cloudinary-1.22.0 lib/cloudinary/blob.rb
cloudinary-1.21.0 lib/cloudinary/blob.rb
cloudinary-1.20.0 lib/cloudinary/blob.rb
cloudinary-1.19.0 lib/cloudinary/blob.rb
cloudinary-1.18.1 lib/cloudinary/blob.rb
cloudinary-1.18.0 lib/cloudinary/blob.rb
cloudinary-1.17.1 lib/cloudinary/blob.rb
cloudinary-1.17.0 lib/cloudinary/blob.rb