class Stripe::MultipartEncoder

def close

Finalizes the object by writing the final boundary.
def close
  raise "object already closed" if @closed
  @body << "\r\n"
  @body << "--#{@boundary}--"
  @closed = true
  nil
end