Class: Net::HTTP::MultipartPostFile
- Inherits:
-
Object
- Object
- Net::HTTP::MultipartPostFile
- Defined in:
- lib/net/http_multipart_post.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#data ⇒ Object
Returns the value of attribute data.
-
#filename ⇒ Object
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename = nil, content_type = nil, data = nil) ⇒ MultipartPostFile
constructor
A new instance of MultipartPostFile.
Constructor Details
#initialize(filename = nil, content_type = nil, data = nil) ⇒ MultipartPostFile
Returns a new instance of MultipartPostFile.
12 13 14 15 16 |
# File 'lib/net/http_multipart_post.rb', line 12 def initialize(filename=nil, content_type=nil, data=nil) @filename = filename @content_type = content_type @data = data end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
19 20 21 |
# File 'lib/net/http_multipart_post.rb', line 19 def content_type @content_type end |
#data ⇒ Object
Returns the value of attribute data.
20 21 22 |
# File 'lib/net/http_multipart_post.rb', line 20 def data @data end |
#filename ⇒ Object
Returns the value of attribute filename.
18 19 20 |
# File 'lib/net/http_multipart_post.rb', line 18 def filename @filename end |