Class: Net::HTTP::MultipartPostFile

Inherits:
Object
  • Object
show all
Defined in:
lib/net/http_multipart_post.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

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

#dataObject

Returns the value of attribute data.



20
21
22
# File 'lib/net/http_multipart_post.rb', line 20

def data
  @data
end

#filenameObject

Returns the value of attribute filename.



18
19
20
# File 'lib/net/http_multipart_post.rb', line 18

def filename
  @filename
end