Class: ScalarRubyTest::FilePart
- Inherits:
-
Object
- Object
- ScalarRubyTest::FilePart
- Defined in:
- lib/amritk-scalar-test/file_part.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#io ⇒ Object
readonly
Returns the value of attribute io.
Instance Method Summary collapse
-
#initialize(io:, filename: nil, content_type: nil) ⇒ FilePart
constructor
A new instance of FilePart.
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_type ⇒ Object (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 |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
6 7 8 |
# File 'lib/amritk-scalar-test/file_part.rb', line 6 def filename @filename end |
#io ⇒ Object (readonly)
Returns the value of attribute io.
6 7 8 |
# File 'lib/amritk-scalar-test/file_part.rb', line 6 def io @io end |