Class: ScalarRubyTest::FilePart

Inherits:
Object
  • Object
show all
Defined in:
lib/amritk-scalar-test/file_part.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(io:, filename: nil, content_type: nil) ⇒ FilePart

Returns a new instance of FilePart.



8
9
10
11
12
# File 'lib/amritk-scalar-test/file_part.rb', line 8

def initialize(io:, filename: nil, content_type: nil)
  @io = io
  @filename = filename
  @content_type = content_type
end

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type.



6
7
8
# File 'lib/amritk-scalar-test/file_part.rb', line 6

def content_type
  @content_type
end

#filenameObject (readonly)

Returns the value of attribute filename.



6
7
8
# File 'lib/amritk-scalar-test/file_part.rb', line 6

def filename
  @filename
end

#ioObject (readonly)

Returns the value of attribute io.



6
7
8
# File 'lib/amritk-scalar-test/file_part.rb', line 6

def io
  @io
end