class Multipart::Param
Attributes
k[RW]
v[RW]
Public Class Methods
new(k, v)
click to toggle source
# File lib/spout/helpers/send_file.rb, line 61 def initialize(k, v) @k = k @v = v end
Public Instance Methods
to_multipart()
click to toggle source
# File lib/spout/helpers/send_file.rb, line 66 def to_multipart "Content-Disposition: form-data; name=\"#{k}\"\r\n\r\n#{v}\r\n" end