Class: Riak::Client::LuwakFile

Inherits:
Tempfile
  • Object
show all
Defined in:
lib/riak/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

Returns the value of attribute content_type.



532
533
534
# File 'lib/riak/client.rb', line 532

def content_type
  @content_type
end

#original_filenameObject 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