Class: Cloudinary::Blob
Overview
Copyright Cloudinary
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#original_filename ⇒ Object
(also: #path)
readonly
Returns the value of attribute original_filename.
Instance Method Summary collapse
-
#initialize(data, options = {}) ⇒ Blob
constructor
A new instance of Blob.
Constructor Details
#initialize(data, options = {}) ⇒ Blob
Returns a new instance of Blob.
6 7 8 9 10 |
# File 'lib/cloudinary/blob.rb', line 6 def initialize(data, ={}) super(data) @original_filename = [:original_filename] || "cloudinaryfile" @content_type = [:content_type] || "application/octet-stream" end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
3 4 5 |
# File 'lib/cloudinary/blob.rb', line 3 def content_type @content_type end |
#original_filename ⇒ Object (readonly) Also known as: path
Returns the value of attribute original_filename.
3 4 5 |
# File 'lib/cloudinary/blob.rb', line 3 def original_filename @original_filename end |