Class: Riak::Client::LuwakFile
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#original_filename ⇒ Object
(also: #key)
Returns the value of attribute original_filename.
Instance Method Summary collapse
-
#initialize(fn) ⇒ LuwakFile
constructor
A new instance of LuwakFile.
Constructor Details
#initialize(fn) ⇒ LuwakFile
Returns a new instance of LuwakFile.
534 535 536 537 |
# File 'lib/riak/client.rb', line 534 def initialize(fn) super(Tempfile.new(fn)) @original_filename = fn end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
532 533 534 |
# File 'lib/riak/client.rb', line 532 def content_type @content_type end |
#original_filename ⇒ Object Also known as: key
Returns the value of attribute original_filename.
532 533 534 |
# File 'lib/riak/client.rb', line 532 def original_filename @original_filename end |