Class: Buble::HTTP::FilePart
- Inherits:
-
Struct
- Object
- Struct
- Buble::HTTP::FilePart
- Defined in:
- lib/buble/http.rb
Instance Attribute Summary collapse
-
#close_after ⇒ Object
Returns the value of attribute close_after.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#io ⇒ Object
Returns the value of attribute io.
Instance Method Summary collapse
Instance Attribute Details
#close_after ⇒ Object
Returns the value of attribute close_after
14 15 16 |
# File 'lib/buble/http.rb', line 14 def close_after @close_after end |
#content_type ⇒ Object
Returns the value of attribute content_type
14 15 16 |
# File 'lib/buble/http.rb', line 14 def content_type @content_type end |
#filename ⇒ Object
Returns the value of attribute filename
14 15 16 |
# File 'lib/buble/http.rb', line 14 def filename @filename end |
#io ⇒ Object
Returns the value of attribute io
14 15 16 |
# File 'lib/buble/http.rb', line 14 def io @io end |
Instance Method Details
#close ⇒ Object
15 16 17 |
# File 'lib/buble/http.rb', line 15 def close io.close if close_after && io.respond_to?(:close) && !io.closed? end |